2.Class syntax

Hi , i know it’s foolish but i can’t pass the 2 excersice . The creation of class Animal thing -Help someone thanks

class Animal(object):
pass

Hope this helps you.

Cheers.

2 Likes

THANK YOU . i didn’t write the pass , down under but in the same line

Thanks, I did the same thing

Thanx. The instructions from the lab were clear as mud.

1 Like

Yep. Realized why I was failing: because I had

class Animal():
    pass

Instead of

class Animal(object):
    pass

“Object” was totally mentioned in the instructions. I should open my eyes and read. /s