This is my code:
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 descripion(): return self.name return self.age hippo = Animal("Hipster", 6) print hippo.is_alive, hippo.description
I think it should work but it says:
Oops, try again. It seems like your code raises an error, see the console window for the error message!
And the console says:
True Traceback (most recent call last):
File "python", line 14, in
AttributeError: 'Animal' object has no attribute 'description'
I don't know what's wrong. I kept switching it from print to return but return didn't make a difference.