Hi tanner,<br><br>I suppose the following is possible:<br><br>class A:<br>  def __init__(self):<br>      self.height = 1<br>      self.weight = 7<br>      <a href="http://self.name">self.name</a> = "tanner"<br>      self.grade = "A"<br>
  def getinfo(self):<br>      info = []<br>      info.append(<a href="http://self.name">self.name</a>)<br>      info.append(self.weight)<br>      info.append(self.height)<br>      info.append(self.grade)<br>      return info<br>
<br>class B:<br>  def __init__(self, a):<br>      <a href="http://self.info">self.info</a> = a.getinfo()<br>      print <a href="http://self.info">self.info</a><br><br>a = A()<br>b = B(a)<br><br><br>Thanks,<br>Kenny<br><br>
<div class="gmail_quote">On Fri, Oct 23, 2009 at 9:59 AM, tanner barnes <span dir="ltr"><<a href="mailto:tanner989@hotmail.com">tanner989@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
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.<br>
                                          <br><hr>Windows 7: It helps you do more. <a href="http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009" target="_blank">Explore Windows 7.</a></div>

<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-<br>"A mental model is good. I change mine all the time."<br>