T=input()
x=T.rfind(’ ')
P=int(T[:x])
Q=float(T[x+1:])
if P%5==0 and P+0.5<=Q:
print(Q-P-0.5)
else:
print(Q)
Why is the RE(NZEC) showing in this code when running in Python 3.5?
T=input()
x=T.rfind(’ ')
P=int(T[:x])
Q=float(T[x+1:])
if P%5==0 and P+0.5<=Q:
print(Q-P-0.5)
else:
print(Q)
Why is the RE(NZEC) showing in this code when running in Python 3.5?
This may be because you are not using rfind correctly.
str.rfind(str, beg=0 end=len(string))
these attributes are to be used in rfind …
may be this helps you.
Why should it matter when the answer is right?
Rfind me the highest index of space and all i did was basic slicing.