print ("Welcome teaacher")
while True:
Class = input("Which class (1, 2 or 3) would you like to look at?")
if Class.lower() not in ('1', '2', '3'):
print("Not an appropriate choice.")
else:
break
while True:
print("Which method would you like to view by?")
Method = input("Type '1' for average, '2' for highest score or '3' for alphabetical")
if Class.lower() not in ('1', '2', '3'):
print("Not an appropriate choice.")
else:
break
if Method == 1:
print("You have chosen Class" +Class+ " average")
if Method == 2:
print("You have chosen Class" +Class+ " highest score")
if Method == 3:
print("You have chosen Class" +Class+ " alphabetical")
I'm trying to get the code to tell me what I've selected but it doesn't recognise the if statements at the end and doesn't print anything at all.
Any help would be great thanks :)