title: Python Error: Global Name not Defined
body: <p>I'm trying to teach myself Python, and doing well for the most part. However, when I try to run the code </p>
  
  <pre><code>class Equilateral(object):
      angle = 60
      def __init__(self):
          self.angle1, self.angle2, self.angle3 = angle
  
  tri = Equilateral()
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "python", line 15, in &lt;module&gt;
    File "python", line 13, in __init__
  NameError: global name 'angle' is not defined
  </code></pre>
  
  <p>There is probably a very simple answer, but why is this happening?</p>