I am a beginner in Python and currently learning how to code in it. I made my first guessing game in Python.
(https://i.stack.imgur.com/ZWb8u.png)
Normally, I should be able to enter the guess. But I cannot enter any guesses in it. It's prompting me that I'm out of guesses. Please help.
Original Code
guess_limit = 3
out_of_guesses = True
while guess != secret_word and not (out_of_guesses):
if guess_count < guess_limit:
guess = input("Enter guess: ")
guess_count += 1
else:
out_of_guesses = False
if out_of_guesses:
print("Out Of Guesses, You Lose! ")
else:
print("You win!")`enter code here`
Output
C:\Users\hites\PycharmProjects\Test\venv\Scripts\python.exe C:/Users/hites/PycharmProjects/Test/app.py Out Of Guesses, You Lose!
Process finished with exit code 0