Re: Help with my program

2009-10-22 Thread Kenny Shen
Indeed, thanks for reminding me of that. The following should suffice: class A: def __init__(self): self.height = 1 self.weight = 7 self.name = "tanner" self.grade = "A" class B: def __init__(self, a): self.info = [a.height, a.weight, a.name, a.grade] prin

Re: Help with my program

2009-10-22 Thread Kenny Shen
Hi tanner, I suppose the following is possible: class A: def __init__(self): self.height = 1 self.weight = 7 self.name = "tanner" self.grade = "A" def getinfo(self): info = [] info.append(self.name) info.append(self.weight) info.append(self.heig