x=int(input())
y=float(input())
if (x%5)==0 and (y>x):
y=(y-x)-0.50
print(y)
else:
print(x)
i’m getting runtime error,plz help
x=int(input())
y=float(input())
if (x%5)==0 and (y>x):
y=(y-x)-0.50
print(y)
else:
print(x)
i’m getting runtime error,plz help
The input in that problem is on one line. input()
gives you a line of text. input().split()
will yield a list of the strings on that line, split by whitespace.