Skip to content

Commit 129ac6b

Browse files
committed
Update PLAY-HANGMAN.py
1 parent 024353b commit 129ac6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PLAY-HANGMAN.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def hangman(secretWord):
8080
print "I am thinking of a word that is",len(secretWord),"letters long. "
8181
print "-----------"
8282
n = 8
83-
print secretWord
8483
lettersGuessed = []
8584
while n>0:
8685
print "-----------"
@@ -103,7 +102,7 @@ def hangman(secretWord):
103102
print "Good guess:",getGuessedWord(secretWord, lettersGuessed)
104103
if n==0:
105104
print "-----------"
106-
return "Sorry, you ran out of guesses. The word was",secretWord
105+
print "Sorry, you ran out of guesses. The word was",secretWord
107106

108107

109108

0 commit comments

Comments
 (0)