Here's the part of my code that's giving trouble:
class_number = input("Before your score is saved ,are you in class 1, 2 or 3?")
if class_number not in (1,2,3):
sys.exit("That is not a valid class, unfortunately your score cannot be saved, please try again")
else:
filename = (class_number + "txt")
But when the program asks the user what class the user is, regardless of the input the program exits the system. This happens even if the user input is in (1,2,3).
Why isn't it working?