I am writing a simple program for a homework problem and It seems to be skipping my if statement. I have looked at other questions posed, and the problems there do not seem to b
if i in secretWord == False:
This doesn't do what you think it does. If you want this path to be taken when i
isn't in secretWord
, you want
if i not in secretWord:
What you have does a chained comparison. First, it checks
i in secretWord
If that's true, it then checks
secretWord == False
If that's true (which it won't be), it then takes the if
path.