5. Instantiating Your First Object



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
zebra = Animal("Jeffery")
print zebra.name


Hi thsi line

zebra = Animal("Jeffery")

you wrote "Jeffery" instead of "Jeffrey"


Thank you very much!


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