Skip to content

Commit acb5497

Browse files
authored
Made syntax changes of removing parentheses suggested by super linter
1 parent 2d92ad5 commit acb5497

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hangman.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ def select_word():
1818

1919
# Get the user player one input
2020
counter = 6
21-
while (counter > 0):
21+
while counter > 0:
2222
listening = input("Enter your input \n")
2323
one_exist = 0
2424
for index, char in enumerate(selected_word):
25-
if (listening == char):
25+
if listening == char:
2626
player1_guess[index] = char
2727
print(" ".join(player1_guess))
2828
one_exist += 1
2929
if (one_exist < 1):
3030
counter -= 1
31-
print(
32-
f"That is incorrect. You have {counter} lives left. Please try again!\n")
31+
print(f"That is incorrect. You have {counter} lives left. Please try again!\n")
3332
print(" ".join(player1_guess))
3433

3534
print("You lose!")

0 commit comments

Comments
 (0)