I am newer to Python, so please try not to yell at me, haha. I am not sure exactly what I am doing wrong here, and wanted to ask for any pointers or tips. I am trying to create a simple guessing game with Python. It states on line 10 my code has an error, and I am not sure exactly what it is. Sorry I cannot be more specific, I do not know all the basics yet, and I am attempting to figure out how to make programs. Here is my code below.
num = 30
guess = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False
while num != guess:
print()
if guess < num:
print("Sorry, but your guess is too low! ")
guess = int(input("Guess the number I am thinking of: "))
elif guess > num:
print("Sorry, but your guess is too high! ")
guess = int(input("Guess the number I am thinking of: "))
else:
print("Wow! You guessed it, good job! ")
if out_of_guesses:
print("Out of guesses, sorry but you lost! ")