Skip to content

Commit 26c6831

Browse files
committed
Update Build a word Guessing Game
1 parent bc81f13 commit 26c6831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/build-a-word-guessing-game-with-python/build-a-word-guessing-game-with-python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The statement is printed on a new line via `\n`, and joins the strings in `guess
114114
Since the guessing is based on user input, we need to prompt the user to guess a letter and store it in a variable.
115115

116116
```py
117-
guess = input('Guess a letter: ')
117+
guess = input('Guess a letter: ').lower()
118118
```
119119

120120
We then need to determine whether or not the guessed letter is in the correct word. If it is, we loop through each letter of the word to find which position the letter is in and replace the placeholder with the guessed letter.

0 commit comments

Comments
 (0)