Error Class Syntax


I'm trying to progress with exercise 19.2 "Class syntax". The objective is "Create a class called Animal in the editor. For now, in the body of your class, use the pass keyword.". But I'm keep getting an error when I hit the save and submit code button.

My code is:

class Animal(pass):

The error I'm getting is

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

I tried to replace the word pass with object, or just leave the space between the parentheses empty. But nothing seems to work. Anyone got who can help me?



That is not the body, but the parameter. The body would be inside the block.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.