hangman 1

mail@pastecode.io avatar
unknown
plain_text
2 years ago
442 B
2
Indexable
Never
        if letter_guessed in hidden_word:
            res = True
            old_letters_guessed.append(letter_guessed)
    
        for c in hidden_word:
            if c in old_letters_guessed:
                print(c, end="")
            else:
                print("_" , end = "")
    if (res):
       print('\nCorrect :)\n')
    else:
       print('\nIncorrect :(\n')
            
    return letter_guessed in hidden_word