I am writing a battleship game to practice. When starting a game, I want to ask a question related to the difficulty of the game, and it goes as follows:
Let's start a new game. Do you want to play right away? The number of battleships will be randomized, as well as their size (y/n)
When coding the answer I want to identify the yes/no question with all writing possibilities (yes, YES, yES, Yes, etc.) but my code gets like:
easy_mode = raw_input("Let's start a new game. Do you want to play right away? The number of battleships will be randomized, as well as their size (y/n)");
if easy_mode == ("yes" or "Yes" or "YES" or "yEs" or "yeS" or "yES" or "YEs" or "YeS"):
(...)
It is indeed ugly and I was wondering whether there was an efficient method to do this.