Im doing my controlled asessment for my year Computer Science GCSE , but we're not getting graded for it so internet access is permitted. We're supposed to make a 3 topic quiz with 3 different difficulties, 5 questions for each.
Ive come across a problem that I cant seem to solve. When I ask for which difficulty or topic the user would like to take, I added a validation check thing to repeat if they type in something other than the options, however its not repeating, and to add to this it always activates only one option. Eg, they input medium difficulty but easy quiz starts.
The Code:
check=False
while check==False:
difficulty=input("What difficulty would you like to use?\nA-Easy\nB-Medium\nC-Hard") #\n drops down a line
if difficulty=="a" or "easy":
print("Easy mode turned on")
check=True
easy_quiz() #function written before hand
elif difficulty=="b" or "medium":
print("medium mode turned on")
check=True
medium_quiz() #function written before hand
elif difficulty=="c" or "hard":
print("Hard mode turned on")
check=True
hard_quiz() #function written before hand
else:
print("error, wrong input, please try again.") # Here is where i Thought it should repeat the question at the top
P.s. Im new to this site so if im doing stuff wrong, apologies before hand