On Tue, 7 Feb 2006, Christopher Spears wrote:

> I get it!  Have printFood return a string!
>
> def printFood(self):
>               return self.food.foodName

Yup.  *grin*

Do one more thing though: call the function something other than
'printFood' now, since it clearly isn't doing any printing itself.
'getFoodName' is a bit pedestrian, but it might work as a name.

Good luck!

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to