balance() method doesn't work when called in python
<p>I have a BankAccount class that allows a balance to be set, an amount to be deposited/withdrawn, and then a method that returns the balance.</p>

<pre><code>class BankAccount():

    def __init__(self, initialBalance = 0):
        self.balance = initialBalance 

    def __repr__(self):
        return("BankAccount({})".format(self.balance))

    def deposit(self, amount):
        self.balance += amount

    def withdraw(self, amount):
        self.balance -= amount

    def balance(self):
        return(self.balance())
</code></pre>

<p>But when I call the balance method <code>(b.balance())</code>, it get a float object not callable error. But if I call it <code>b.balance</code> it returns the proper amount. I'm confused on what the error means and why the method call doesn't work. Thanks in advance!</p>