# person_tutor.py # Walker M. White (wmw2) # October 15, 2015 """Python Tutor version of Person class""" # We will cover this NEXT lecture class Person(object): """Instance represents a person in a genealogical tree.""" def __init__(self,fname,lname,mom=None,dad=None): self.fname = fname self.lname = lname self.mom = mom self.dad = dad def __repr__(self): return str(self) def name(self): return self.fname+' '+self.lname