So I think I understand why the code is not running past the while statement, but I don't know how to get it to recognize the guess part of it and run through it. I've searched through several questions on the looping part, but I can't actually see execution of it.
num_answer = int(input('What should the answer be? '))
guesses = int(input('How many guesses? '))
answer = int(input('Guess a number: '))
while answer != num_answer and guesses != guesses:
answer = int(input('Guess a number: '))
if answer < num_answer:
print('The number is higher than that.')
guesses += 1
answer = int(input('Guess a number: '))
elif answer > num_answer:
print('The number is lower than that.')
guesses += 1
answer = int(input('Guess a number: '))
elif answer == num_answer:
print('You win!')
elif guesses > guesses and answer != num_answer:
print("You lose; the number was", num_answer, ".")
guesses != guessesnorguesses > guesseswill ever be true.