dino3vr

Untitled

Dec 16th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. num = 93
  2. isWin = False
  3.  
  4. while not isWin:
  5.     INPUT = int(input("Введи число от 80 до 100 >>> "))
  6.  
  7.     if not (INPUT > 100) and not (INPUT < 80):
  8.         if INPUT == num:
  9.             print("Ты угадал!")
  10.             isWin = True
  11.         elif INPUT > num:
  12.             print("Твоё число больше.")
  13.         elif INPUT < num:
  14.             print("Твоё число меньше")
  15.     else:
  16.         print("Число должно быть от 80 до 100")
  17.     print()
  18.  
  19. input()
Advertisement
Add Comment
Please, Sign In to add comment