guess the number

num=56

for i in range(3):

  guess_num=int(input('Enter the number you guessed:'))

  if guess_num==num:

    print('Congratulations, you guessed it right')

    break

  elif guess_num > num:

    print('The number you guessed is too big')

  else:

    print('The number you guessed is too small')

else:

  print('You guessed too many times, game over')    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324941808&siteId=291194637