[Tutor] Python Gotcha - List Question

Guess?!? wtfwhoami at gmail.com
Tue Jun 17 07:07:28 CEST 2008


Hello Danny,

It isnt my homework. I am reading Think Python: An Introduction to
Software Design ..... This is Exercise question of Chap 17

Thanks,
G


On Mon, Jun 16, 2008 at 9:24 PM, Danny Yoo <dyoo at cs.wpi.edu> wrote:
> 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