Ill make this short.
My code is:
if player_gender != "male" or "Male" or "female" or "Female":
print("Try again")
else:
print("Great!")
Im not sure why but it will constantly output the "Try again" message regardless whether or not I type the correct words: (Male, male, Female, or female).
While putting in the correct gender type, I was expecting it to pass over the "Try again" message since I used the "!=" operator, and then jump straight to the "Great!" message. But it always says "Try again"
VICE VERSA
Ive also tried
if player_gender == "male" or "Male" or "female" or "Female":
print("Great!")
else:
print("Try Again")
Here I'd always get "Great!" and never "Try again" even when I purposely choose a word that does not correspond to a gender.
Also I know the past I've heard of a ways to make my if statement shorter instead of:
if player_gender == "male" or "Male" or "female" or "Female":
Is there some sort of phrase or symbol that will include both lowercase and uppercase spellings? I'd rather learn that way for future projects.
And Yes I am a newbie Lol I get how easy this question is and im sure ill be face palming once I realize my error. BUT ANY OTHER HELP, ADVISE, OR CRITICISM IS GREATLY APPRECIATED!! =)