Re: [Tutor] Dictionaries - Using 1 Key:Value to find another

2010-12-11 Thread Al Stern
print ("\nSorry.", grandfather, "is not a grandfather. Try again.") Thanks all. _   www.electronsbaseball.com -Original Message- From: David [mailto:bouncingc...@gmail.com] Sent: Saturday, December 11, 2010 6:35 PM To: Al Stern Cc: tutor@

Re: [Tutor] Dictionaries - Using 1 Key:Value to find another

2010-12-11 Thread David
On 12 December 2010 11:10, Al Stern wrote: > > I thought father got defined in the > > father == pairs[grandfather] > line. I have tried it a couple different ways but always get the father is > not defined error once I enter the name. I only glanced at your code, but maybe you have some typos t

Re: [Tutor] Dictionaries - Using 1 Key:Value to find another

2010-12-11 Thread col speed
On 12 December 2010 07:10, Al Stern wrote: > This was another execise in my book. Following is my code for a program > that uses dictionaries to find and edit pairs of fathers and sons. The > program works right up to the final step which is to find out if any given > father is actually a grand

[Tutor] Dictionaries - Using 1 Key:Value to find another

2010-12-11 Thread Al Stern
This was another execise in my book. Following is my code for a program that uses dictionaries to find and edit pairs of fathers and sons. The program works right up to the final step which is to find out if any given father is actually a grandfather to someone else in the dictionary. I set up m