This is how my program look like.
m=(input("Did the patient suffer from pain shift ? type 'y' or 'n' \n")).casefold()
if m=="y":
M=1
elif m=="n":
M=0
else:
print ("error entry start over ")
How to get the program not to ask the next question if user entered any thing other than y or n?
I am very very beginner I am just in my 3rd day learning so I don't have enough functions dictionary to use.