flag = True while(flag): a = int(input("Enter a number:")) if a > 100: print("Great!") flag = False else: print("Number is below 100, try again")