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