2.Class syntax


#1

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


#2

class Animal(object):
pass

Hope this helps you.

Cheers.


#3

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


#4

Thanks, I did the same thing


#5

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


#6

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