Skip to content

Commit af51eda

Browse files
committed
Guess Letters
1 parent a88716f commit af51eda

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Exercise-31-Guess-Letters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def win(word_list):
6868
word_list -- the word list.
6969
7070
Returns:
71+
7172
True/False -- return True if the word has been guessed right alse return false.
7273
"""
7374

@@ -84,6 +85,7 @@ def main():
8485
print(' '.join(guess_list))
8586
while True:
8687

88+
8789
guess = input('Guess your letter: ')
8890

8991
guess_list = modify_list(guess_list, guess, right_answer)
@@ -94,6 +96,8 @@ def main():
9496
if __name__ == "__main__":
9597
main()
9698

99+
100+
97101
# >>> %Run test.py
98102
# Welcome to Hangman!
99103
# _ _ _ _ _ _ _ _ _

Exercise-33-Birthday-Dictionaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def main():
6969
if __name__ == "__main__":
7070
main()
7171

72-
72+
7373
# Test Part
7474
# >>> %Run test.py
7575
# Welcome to the birthday dictionary.

0 commit comments

Comments
 (0)