Nov-13-2019, 09:53 PM
MY CODE--> I know i have to float the string somehow but i can't. And i don't know how. Also when it comes to the if statements I've understood that i can't make this statements between string and float. How should i do?
Regards
score = input("Enter Score: ")
if score > 1.0 or score < 0.5:
print("error")
if score > 0.9:
print(A)
if score >= 0.8:
print(B)
if score >= 0.7:
print©
if score >= 0.6:
print(D)
if score < 0.6:
print(F)
print(float("score"))
Regards
score = input("Enter Score: ")
if score > 1.0 or score < 0.5:
print("error")
if score > 0.9:
print(A)
if score >= 0.8:
print(B)
if score >= 0.7:
print©
if score >= 0.6:
print(D)
if score < 0.6:
print(F)
print(float("score"))