NZEC Error | HS08TEST | Python 3.5

y,x = input().split()

x = int(x)

y = float(y)

if y>=0 and x>0:

if x%5==0 and y>=x+.5:
    print("{:.2f}".format(y-x-.5))
else:
    print("{:.2f}".format(y))

Can you please tell where the error is ?

There is no problem with code untill it works perfectly on local ide you can submit it by Doing “Switch to Non IDE mode” any then try to submit ,its drawback is you have to test code on your Locally on your computer but if code is right it will get submitted

I think you made a mistake in the first line of code itself
Take x,y instead of y,x

or else try this :point_down:
x,y=map(float,input().split())
if x%5 ==0 and y>=x+0.50:
a=y-x-0.50
print(’{:.2f}’.format(a))
else :
print(’{:.2f}’.format(y))