Random Import Secret = random.randint (1, 10) tmp = the INPUT ( "Enter a number") GUESS = int (tmp) the while GUESS = Secret:! tmp = the INPUT ( "Enter a number") GUESS = int ( tmp) IF == Secret GUESS: Print ( "Bingo") the else: IF GUESS> Secret: Print ( "big") the else: Print ( "small") Print ( "game Over")
①random.randint (1,10) to generate a number of 1 to 10.