We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8a7606 commit 16993d3Copy full SHA for 16993d3
hangmanproject_unit9.py
@@ -36,7 +36,7 @@ def choose_word(file_path, index):
36
37
num_unique_words = len(set(words))
38
39
- secret_word = words[(index - 1) % len(words)]
+ secret_word = words[(int(index) - 1) % len(words)]
40
41
return (num_unique_words, secret_word)
42
0 commit comments