I am trying to have the below code return True if the letters in secretWord are also in lettersGuessed. Could someone please let me know what is wrong with my code? It is consistently returning False. Thanks so much.
def isWordGuessed(secretWord, lettersGuessed): current = ' ' for c in secretWord: if c in lettersGuessed: current += c if len(current) == len(secretWord): return True else: return False print(isWordGuessed(secretWord, lettersGuessed))