python exercises - guess the random number

# Guess a random number between 1 and 10 random numbers, a total of five chances, guess a small little tips guess, guess big big tips guess, guess right the prompt "You're great" and quit, not five times guess the prompt "hello stupid"!

Random Import 
random_num the random.randint = ( 0 , 10)
Print (random_num)
COUNT = . 1 # counter
the while COUNT < . 6:
NUM = int ( INPUT ( ' Enter your guess numbers: '))
IF NUM <random_num:
Print ( ' your guess a little, try to guess the big ')
elif NUM> random_num:
Print ( ' your guess is big, try to guess a little ')
the else:
Print ( ' Congratulations to you within five of guessed a ')
BREAK
COUNT + = . 1 IF COUNT == . 6: Print ( " hey, no guess on the inner five ')

Guess you like

Origin www.cnblogs.com/shanshan-test/p/12509643.html