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