I run that code in python shell 3.3.2, but it gives me SyntaxError: invalid syntax
.
class Animal(object):
"""Makes cute animals."""
is_alive = True
def __init__(self, name, age):
self.name = name
self.age = age
def description(self):
print self.name #error occurs in that line!
print self.age
hippo=Animal('2312','321312')
hippo.description()
I'm a newbie in python and I don't know how fix that codes. Can anyone give me some advice? Thanks in advance.