Advertisement
Spocoman

06. Number in Range

Dec 19th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. num = int(input())
  2. if -100 <= num < 0 or 0 < num <= 100:
  3.     print('Yes')
  4. else:
  5.     print('No')
  6.  
  7.  
  8. Тарикатско решение:)
  9.  
  10.  
  11. num = int(input())
  12. print('Yes' if -100 <= num < 0 or 0 < num <= 100 else 'No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement