20.2 Class Syntax


#1

When I run the code :

class Animals(object):
pass

my_animal=Animals()

I get the error:

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

Any suggestions to solve this?


#2

Never mind, I was temporarily blind...


#3

Try to rename your class from Animals to Animal.


#4

Thx, I just noticed that myself :smirk: