Re: Help with my program

2009-10-23 Thread Alan Gauld
"tanner barnes" wrote I have a program with 2 classes and in one 4 variables are created (their name, height, weight, and grade). What im trying to make happen is to get the variables from the first class and use them in the second class. In general thats not a good idea. Each class should

Re: Help with my program

2009-10-23 Thread Lie Ryan
tanner barnes wrote: Ok so im in need of some help! I have a program with 2 classes and in one 4 variables are created (their name, height, weight, and grade). What im trying to make happen is to get the variables from the first class and use them in the second class.

Re: Help with my program

2009-10-22 Thread Kenny Shen
ay, October 23, 2009 7:30 AM > > To: python-h...@python.org; python-list@python.org; tu...@python.org > > Subject: Help with my program > > > > Ok so im in need of some help! I have a program with 2 classes and in one > 4 > > variables are created (their name, height

Re: Help with my program

2009-10-22 Thread Chris Rebert
unces+ntb837=motorola@python.org] On Behalf Of > tanner barnes > Sent: Friday, October 23, 2009 7:30 AM > To: python-h...@python.org; python-list@python.org; tu...@python.org > Subject: Help with my program > > Ok so im in need of some help! I have a program with 2 classes and in on

RE: Help with my program

2009-10-22 Thread VYAS ASHISH M-NTB837
Behalf Of tanner barnes Sent: Friday, October 23, 2009 7:30 AM To: python-h...@python.org; python-list@python.org; tu...@python.org Subject: Help with my program Ok so im in need of some help! I have a program with 2 classes and in one 4 variables are created (their name, height, weight, and grade

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

Help with my program

2009-10-22 Thread tanner barnes
Ok so im in need of some help! I have a program with 2 classes and in one 4 variables are created (their name, height, weight, and grade). What im trying to make happen is to get the variables from the first class and use them in the second class.