Skip to content

Commit 16993d3

Browse files
authored
Update hangmanproject_unit9.py
1 parent c8a7606 commit 16993d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hangmanproject_unit9.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def choose_word(file_path, index):
3636

3737
num_unique_words = len(set(words))
3838

39-
secret_word = words[(index - 1) % len(words)]
39+
secret_word = words[(int(index) - 1) % len(words)]
4040

4141
return (num_unique_words, secret_word)
4242

0 commit comments

Comments
 (0)