Can someone help me correct my code in python 3.5

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

you should take input by this.

first,second=input().split()

first=int(first)

second=int(second)

because it will take input by space.

// 2 3

//first=2

//second=3

There is no need to print “What amount you want to withdraw?” inside input… It’s machine which is checking your output…