Python Inheritance - What am I doing wrong?
<p>I am trying to run a example of inheritance and don't know why my output is not correct. Below is the code.</p>

<pre><code>class BankAccount():
    def __init__(self):
        self.balance=0

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

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


class MinimumBalance(BankAccount):
    def __init__(self,min_bal):
        BankAccount.__init__(self)
        self.min_balance=min_bal

    def withdraw(self,amount):

        if self.balance - amount &lt; self.min_balance:
            print("Balance is LOW")
        else:
            BankAccount.withdraw(self,amount)

a=BankAccount()
b=MinimumBalance(50)
a.deposit(100)
b.withdraw(40)
</code></pre>

<p>The output is:</p>

<pre><code>100
Balance is LOW
</code></pre>