Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 16993d3

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /