hangman 1
unknown
plain_text
3 years ago
442 B
8
Indexable
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
Editor is loading...