On 12 December 2010 11:10, Al Stern <albst...@gmail.com> 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 there: father == pairs[grandfather] for father in pairs: grandson == pairs[father] should probably be father = pairs[grandfather] for father in pairs: grandson = pairs[father] Try that. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor