5. Instantiating Your First Object


#1



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


I get this error:

Oops, try again. Did you set your zebra's name to 'Jeffrey' with zebra = Animal('Jeffrey')?

Thanks in advance


class Animal(object):
    def __init__(self, name):
        self.name = name
        pass
    
zebra = Animal("Jeffery")
print zebra.name


#2

Hi thsi line

zebra = Animal("Jeffery")

you wrote "Jeffery" instead of "Jeffrey"


#3

Thank you very much!


#4

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