Im a beginner in python and tried to solve the ATM problem ATM PROBLEM . Even Though My Code Is Giving The right output , my submission was graded as ‘Wrong Answer’
Please Help
withdraw,balance = input('Enter Withdrawal And Balance').split()
withdraw = int(withdraw)
balance = float(balance)
if withdraw>0 and withdraw+0.5<balance and withdraw%5==0:
new_bal = balance - withdraw - 0.5
print('{:.2f}'.format(new_bal))
else:
print('{:.2f}'.format(balance))