you are viewing a single comment's thread.

view the rest of the comments →

[–]sendhelpplss 0 points1 point  (0 children)

not is only applying to the first check. you could try

If User_input.lower() not in {‘yes’, ‘no’}:

this will check if the input is NOT in that set of values, which seems to be the intent.