title: 'int' object is not callable error python
body: <p>Hey guys so I am getting this "TypeError: 'int' object is not callable" error when I run this code, I did some research and I think it's something with my variable naming? Could someone please explain to me what is wrong?</p>
  
  <pre><code>class account(object):
      def set(self, bal):
          self.balance = bal
      def balance(self):
          return balance
  </code></pre>
  
  <p>Here is my example run:</p>
  
  <pre><code>&gt;&gt;&gt; a = account()
  &gt;&gt;&gt; a.set(50)
  &gt;&gt;&gt; a.balance()
  Traceback (most recent call last):
    File "&lt;pyshell#12&gt;", line 1, in &lt;module&gt;
      a.balance()
  TypeError: 'int' object is not callable
  </code></pre>