We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ae126 commit 9c11ee1Copy full SHA for 9c11ee1
20-Hangman.py
@@ -1,9 +1,9 @@
1
-name = input("Name: ")
+name = input("Enter name: ")
2
print("Hello " + name + " time to play hangman!")
3
4
secret_word = "Metallica"
5
6
-guesses = ""
+guess_string = ""
7
8
lives = 10
9
@@ -13,7 +13,7 @@
13
14
for character in secret_word:
15
16
- if character in guesses:
+ if character in guess_string:
17
18
print(character)
19
else:
@@ -26,7 +26,7 @@
26
27
28
guess = input("Guess a word: ")
29
- guesses += guess
+ guess_string += guess
30
31
if guess not in secret_word:
32
lives -= 1
0 commit comments