1
2class Person:
3 name = ""
4 age = 0
5
6 def __init__(self, personName, personAge):
7 self.name = personName
8 self.age = personAge
9
10 def __repr__(self):
11 return {'name':self.name, 'age':self.age}
12
13 def __str__(self):
14 return 'Person(name='+self.name+', age='+str(self.age)+ ')'
15