Hello everyone,
While doing the methodical approach of introduction to classes I kept getting an error message that something seemed off about my code. Having looked at the solution, however, I don’t see the difference between my solution and the solution given by the system. Is there anything I might be missing?
class Animal(object):
“”“Makes cute animals.”""
is_alive = True
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(“Daniel”, 24)
hippo.description()