A bank account has balance 100. Its withdraw method does self.balance = self.balance - amount first, and then checks if the balance is below 0 and raises an error. withdraw(150) is called and the error is caught. What is wrong?
Log in to join the discussion.
Loading…