Created
October 31, 2016 21:18
-
-
Save daniel-obrien/8f40835d36dafcf0e599e4e49f9c89f5 to your computer and use it in GitHub Desktop.
Grade Finder
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
total=int(input("Please enter the total marks you can get")) | |
yourmarks=int(input("Please enter how many marks you got")) | |
answer=(yourmarks/total*100) | |
print(answer) | |
if answer < 10: | |
print("G") | |
elif answer < 25 > 10: | |
print("F") | |
elif answer < 40 > 25: | |
print("E") | |
elif answer < 55 > 40: | |
print("D") | |
elif answer < 70 > 55: | |
print("C") | |
elif answer < 85 > 70: | |
print("B") | |
elif answer > 85: | |
print("A") | |
else: | |
print("ERROR") | |
print("A pass is 'D' or above") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment