Skip to content

Instantly share code, notes, and snippets.

@Telltak
Created December 5, 2018 20:46
Show Gist options
  • Save Telltak/3568f6296544ec768256863e1a2dff39 to your computer and use it in GitHub Desktop.
Save Telltak/3568f6296544ec768256863e1a2dff39 to your computer and use it in GitHub Desktop.
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