Alright thank you all! so now the code is working but now i would like to know how to display another error if the users types a letter or anything else that is not a number.
score = input("Enter Score between 0.0 and 1.0: ")
flscore = float(score)
if flscore<0.0 or flscore>1.0:
print ("Error please stay in range of value")
elif flscore >= 0.9:
print("A")
elif flscore >= 0.8:
print ("B")
elif flscore >= 0.7:
print ("C")
elif flscore >= 0.6:
print("D")
elif flscore < 0.6:
print("F")
else:
print ("error 404")
score = input("Enter Score between 0.0 and 1.0: ")
flscore = float(score)
if flscore<0.0 or flscore>1.0:
print ("Error please stay in range of value")
elif flscore >= 0.9:
print("A")
elif flscore >= 0.8:
print ("B")
elif flscore >= 0.7:
print ("C")
elif flscore >= 0.6:
print("D")
elif flscore < 0.6:
print("F")
else:
print ("error 404")