My code is
try:
first=int(input("What amount you want to withdraw?"))
second=int(input("What is your account balance?"))
diff=second-first
if first%5==0:
if second>first and diff >= 0.5:
charge=0.5
x=first+0.5
final=second-x
else:
final=second
else:
final=second
print(final)
except ValueError:
print(“invalid input”)
Whats the error in this code. This is for ATM question. I am getting wrong answer after submission