On line 14, I want to notify the user that their account is overdrawn. I want this to appear when they have withdrawn up to 50 more than their current balance. If they go over this the withdrawal will be refused.
bal = input("What is your account balance?: ")
intbal = int(bal)
withdraw = input("How much would you like to withdraw?: ")
intwith = int(withdraw)
max = intbal + 50
if intwith <= intbal:
print()
print("Withdrawal successful. Current balance: ", intbal - intwith)
elif intwith >= intbal or max:
print()
print("Withdrawal successful, the account is overdrawn. Current balance: ", intbal - intwith)
elif intwith > max:
print()
print("Withdrawal refused, insufficient funds. Current balance:", intbal)
else:
print("Invalid input")
I tried using "or" which clearly did not work. What are some solutions?