Any help?


#1
class Animal(object):
    is_alive = True 
    health = "good"
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def description(self):
        print self.name
        print self.age

    hippo = Animal("larry",3)
    sloth = Animal("jim", 5)
    ocelot = Animal("dick", 9)

    print hippo.health
    print sloth.health
    print ocelot.health

#2

Hi @ztiw0ler0neb ,

These lines should not be indented, because indenting them makes them part of the Animal class definition ...

hippo = Animal("larry",3)
sloth = Animal("jim", 5)
ocelot = Animal("dick", 9)

print hippo.health
print sloth.health
print ocelot.health

#3

@geomaticmashups Ah, yes. I see. Thanks for the help!