# Secret Code Number Guessing Game # import random m = 777 number=random.randint(0,100) print("Hi-Lo Number Guessing Game: between 0 and 100 inclusive.") x_str = input("Guess a number:") while not(x_str.isdigit() and int(x_str)> 0): print("must enter a number and it be greater than zero.") x_str = input("Guess a number:") while not( int(x_str) < 100 or int(x_str)< 778 and int(x_str)>776): print("must enter a number less than 100") x_str = input("Guess a number:") x_int = int(x_str) while 0 <= x_int <= 100: if x_int > number: print ("Guessed Too High") elif x_int < number: print (" Guessed Too Low") else: print("You Guessed it. The number was:",number) break x_str = input("Guess a number:") x_int = int(x_str) else: print("You quit early, the number was:",number) if x_int == m: print(' '*40) print("You must have acquired the secret passcode to this program.") print(' '*40) print("What's interesting about this secret code is that I could hide") print("messages in this program for people that have the secret code") print("or I could even make a seperate program run when the secret") print("code is entered. No one, without good understanding of") print("programming, would be able to notice that there even is a secret") print("code and would think its just a game,because if you enter a") print("number greater than 100 it tells you to enter a number smaller") print("than 100. Only 777 is an exception. Pretty cool!")