17 lines
239 B
Python
17 lines
239 B
Python
score = input("Enter Score: ")
|
|
|
|
try:
|
|
score = float(score)
|
|
except:
|
|
score = 0
|
|
|
|
if score >= 0.9:
|
|
print("A")
|
|
elif score >= 0.8:
|
|
print("B")
|
|
elif score >= 0.7:
|
|
print("C")
|
|
elif score >= 0.6:
|
|
print("D")
|
|
else:
|
|
print("F") |