desislava_topuzakova

10. Invalid Number

Feb 21st, 2021
762
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # валидно: [100; 200] или е 0
  2. number = int(input())
  3. valid = 100 <= number <= 200 or number == 0
  4.  
  5. if not valid:
  6.     print('invalid')
RAW Paste Data