import random num = random.randint(1, 100) guess = 0 print('Im thinking of a number... ') print(' ') while guess != num: guess = int(input('Guess the number: ')) if guess == num: print('You got it') elif guess > num: print('Lower!') else: print('Higher!')