そのコードを python shell 3.3.2 で実行しましたが、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()
私はPythonの初心者で、そのコードを修正する方法がわかりません。誰かアドバイスをくれませんか?前もって感謝します。