Can someone tell me what’s wrong with this?
def main():
# Initialize variables
numGuesses = 0
userGuess = -1
secretNum = 5
while secretNum!= userGuess:
userGuess = int(input("Guess a number between 1 and 20: "))
numGuesses = numGuesses + 1
if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")
if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")
main()