Created
December 5, 2018 20:46
-
-
Save Telltak/3568f6296544ec768256863e1a2dff39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grade = input("What was the grade? ") | |
if grade >= 0 and grade <=39: | |
print("Fail.") | |
elif grade >= 40 and grade <= 59: | |
print("Pass.") | |
elif grade >= 60 and grade <= 79: | |
print("Merit.") | |
elif grade >= 80 and grade <=100: | |
print("Distinction.") | |
else: | |
print("Not a grade.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment