Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- score = input("Enter Score: ")
- s = float(score)
- if s <= 0 or s >= 1.0:
- print("The number you entered is out of range.")
- elif s >= 0.9:
- print("A")
- elif s >= 0.8:
- print("B")
- elif s >= 0.7:
- print("C")
- elif s >= 0.6:
- print("D")
- elif s < 0.6:
- print("F")
- else:
- print("The number you entered is out of range.")
Add Comment
Please, Sign In to add comment