Else statement runs only if the 'if' statement runs false. Else statements don't need any condition, it does the opposite of 'if' statement. Also, you can give an elif statement which needs a condition, which runs if the 'if' statement runs false (a kinda else statement with conditions...
Let's say the secret word is lemon. The player guesses "n". The loop goes through every letter in secretWord from l to n. When it is at n, shouldn't the statement "letter not in goodGuesses:" be found as false (because letter n was indeed appended to goodGuesses a few lines abo...