Class Syntax


This Was Error Message From Codecademy:
Oops, try again. Did you create a class with the name Animal?

This Was Error Message From The Console:
File "python", line 1
class Animal(object):
SyntaxError: unexpected EOF while parsing

class Animal(pass):

Can Anyone Help?


pass is not the argument you want to place in the parenthesis. Pass is simply used a placeholder. Look at the example to the left and form your code like that, the where the comment is, place pass, otherwise you will get an end of file error.


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