Skip to content

Commit dc479fb

Browse files
authored
Added "" to mode.
1 parent acb5497 commit dc479fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: hangman.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def select_word():
5-
with open("words.txt", mode='r') as words:
5+
with open("words.txt", mode="r") as words:
66
reading_lines = words.readlines()
77
return choice(reading_lines).strip()
88

@@ -26,7 +26,7 @@ def select_word():
2626
player1_guess[index] = char
2727
print(" ".join(player1_guess))
2828
one_exist += 1
29-
if (one_exist < 1):
29+
if one_exist < 1:
3030
counter -= 1
3131
print(f"That is incorrect. You have {counter} lives left. Please try again!\n")
3232
print(" ".join(player1_guess))

0 commit comments

Comments
 (0)