[Tutor] Python Gotcha - List Question
Danny Yoo
dyoo at cs.wpi.edu
Tue Jun 17 06:24:59 CEST 2008
On Tue, Jun 17, 2008 at 12:14 AM, Guess?!? <wtfwhoami at gmail.com> wrote:
> Exercise 17.6 Write a definition for a class named Kangaroo with the
> following methods:
[cut]
Be careful about asking for homework help. We're restricted from
giving much help on homework questions.
The error message you're seeing is:
AttributeError: Kangaroo instance has no attribute 'pouch_contents'
I would believe this message. This is saying that, for some reason,
your Kangaroos don't have pouches.
Where would this 'pouch_contents' attribute be initialized?
More information about the Tutor
mailing list