diff --git a/games/hangman.py b/games/hangman.py index 5019ffc..ddf5c02 100644 --- a/games/hangman.py +++ b/games/hangman.py @@ -16,7 +16,9 @@ # Print the word list, for debugging... x = 0 for w in lower_words: - print(str(w).replace("'b","")) + # trying to find a way to remove apostrophe and accént aigu. I'm not sure if this is where it needs to go + # but when I run in debug it seems to work. + print(str(w).replace("'b","").replace("'","").replace("é","e")) x += 1 # Count the number of words, so that we can choose one. @@ -76,4 +78,4 @@ turns -= 1 print("\nSorry,", guess, "is not in the word.\n") if turns == 0: - print(name, ", you lost!\nThe word you were looking for was", word + "!") \ No newline at end of file + print(name, ", you lost!\nThe word you were looking for was", word + "!")