2/19 Class syntax


#1

What is wrong with my text:

class Animal(pass):

it says:

File "python", line 1
class Animal(pass):
^
SyntaxError: invalid syntax

Oops, try again. Did you create a class with the name Animal?


Class syntax
#2

Hi try it like that

 class Animal(object):
    pass

#3

Thanks, it works now