9. They're Multiplying! - Creating Animal() called sloth error


#1

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

My code is:

class Animal(object):
    """Makes cute animals."""
    is_alive = True
    health = 'good'
    def __init__(self, name, age):
        self.name = name
        self.age = age
    # Add your method here!
    def description(self):
        print self.name
        print self.age
    hippo = Animal('Liz', 12)
    ocelot = Animal('Simone', 3)
    sloth = Animal('Slow', 98)
    print hippo.health
    print ocelot.health
    print sloth.health


The error reads as follows:
Oops, try again. Did you create an Animal() called sloth?

What is wrong with my code? There clearly is an Animal() named sloth in my code.


#2

HI all this part don't need to be indent

hippo = Animal('Liz', 12)
ocelot = Animal('Simone', 3)
sloth = Animal('Slow', 98)
print hippo.health
print ocelot.health
print sloth.health

#3

Yes, that worked! Thank you!