title: Using variables without self in a class- Python
body: <p>I have a question about why the code below executes what it does.</p>
  
  <pre><code>class Account:
      def __init__(self, id):
          self.id = id
          id = 800
          id = self.id + id
  
  acc = Account(123)
  print(acc.id)
  </code></pre>
  
  <p>Why would this code print 123 instead of 923? Why does the id not work inside of the class?</p>