質問編集履歴
1
関数本体を入れました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -300,4 +300,26 @@
|
|
300
300
|
|
301
301
|
print(get_guessed_word(secret_word, letters_guessed))
|
302
302
|
|
303
|
+
|
304
|
+
|
305
|
+
if __name__ == "__main__":
|
306
|
+
|
307
|
+
# pass
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
# To test part 2, comment out the pass line above and
|
312
|
+
|
313
|
+
# uncomment the following two lines.
|
314
|
+
|
315
|
+
secret_word = choose_word(wordlist)
|
316
|
+
|
317
|
+
guesses_remaining=0
|
318
|
+
|
319
|
+
letters_guessed=[]
|
320
|
+
|
321
|
+
s=''
|
322
|
+
|
323
|
+
hangman(secret_word)
|
324
|
+
|
303
325
|
```
|