program ignoring if statement, and printing True when False
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 be my problem so I am hoping you can help. def isWordGuessed(secretWord, lettersGuessed): if lettersGuessed == []: return False else: for i in lettersGuessed: if i in secretWord == False: return False else: if i == lettersGuessed[-1]: return True When I place in some print functions to see what it is doing, it completely skips if i in secretWord == False: I have placed right above this line print i in secretWord and it