Skip to content

Commit

Permalink
Update Guess_the_word .py
Browse files Browse the repository at this point in the history
  • Loading branch information
neverfriendme authored Oct 20, 2024
1 parent 170c6c1 commit 059a945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Files/Guess_the_word .py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
guess = input("----------------------\n\nGuess the word! You have to use words!\n")
if guess.lower() == generate:
print(f"Correct! the word was {generate}.")
running = False
generate = random.choice(wordlist)
elif guess.lower() != generate:
print(f"Wrong! the word was {generate}")
generate = random.choice(wordlist)
Expand Down

0 comments on commit 059a945

Please sign in to comment.