I'm trying to create a program which calculates overall scores and outputs a grading system
Say Pass, Merit, Distinction depending on which grade they got.
I've tried the code below but it's no use. Also tried using and/or statements but no luck.
number = input("Enter a number: ")
if number < 40:
print("Failed")
elif number > 40 < 50:
print("Pass")
elif number > 50 < 60:
print("Merit")
else:
print("Distinction")
So I'm basically trying to get this to work, however the conditional statements aren't working and can't properly categorise the mark.
Any help?