This is not working here. Can someone tell me why:?
It should work. Could you post your code.
Also alternatively, you can use a map.
X,Y=input().split() if X%5==0: Y=Y-X-0.5 print(Y)
The question was Atm machine(beginner).
In your code
X and Y will have data type string. And you can’t do arithmetic operations on strings.
You need to use
X,Y = list(map(int,input().spilt()))
to convert X and Y to integer .
X and Y are integers .
you can do it:-
x,y = map(int,input().split())