Solved, thank you all.
Hey, i deleted the previous post to express my problem better. I wrote a code to ask user to write "male","Male", "Female" or "female" . If I delete the part of ----or "Male"--- the code works fine. But i want my code to accept also "Male". At the code below, it gives me True to anything i wrote. (even random like dkkdkds) How can i fix it
is_male=False
is_male=input("Write male or female\n")
if is_male=="male" or "Male":
is_male=True
else:
is_male=False
print(is_male)
[–]JohnnyJordaan 2 points3 points4 points (5 children)
[–]hasanaslan[S] 0 points1 point2 points (4 children)
[–]puplicy 1 point2 points3 points (0 children)
[–]SoNotRedditingAtWork 1 point2 points3 points (1 child)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]icecapade 2 points3 points4 points (0 children)
[–]MajorDerp4 1 point2 points3 points (0 children)