Instantiating Your First Object


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

Not sure why this is not correct even though the output is Jeffery. Please help.

class Animal(object):
    def __init__(self, name): = name

zebra = Animal("Jeffery")


you misspelled Jeffrey


well look at that. thank you.


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