Class Syntax


#1


https://www.codecademy.com/en/courses/python-intermediate-en-WL8e4/0/2?curriculum_id=4f89dab3d788890003000096#

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?


#2

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.


#3

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