I am very new to python and learing daily
I have problem with the below code. For any string input it gives me ValueError How can I fix that error? Thank you for support
score = float(sr)
if score>=0.9 and score<=1 :
print("A")
elif score >=0.8 and score <0.9 :
print("B")
elif score>=0.7 and score <0.8 :
print("C")
elif score>=0.6 and score <0.7:
print("D")
elif score<0.6 :
print("F")
else :
print("bad score")```