So I made a random number guesser, but I'm not sure why it's not working. When The number is correct, it should break the loop, and print yes.
import random
import math
print("Im thinking of a number between 1 and 10,what is it?")
num = random.randint(0,10)
while True:
x = input("")
if x == num:
print("Good Job!")
break
elif x != num:
print("Nope")```