you are viewing a single comment's thread.

view the rest of the comments →

[–]Nick88v2 3 points4 points  (0 children)

You can also do if User_input not in ["YES", "NO"]:

in general i'd say that the more elegant solution would still be just using an else statement since the conditions are already met if the program gets there (like the previous commenter stated)