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