Advertisement
Spocoman

05. Number 100...200

Dec 10th, 2021
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. num = int(input())
  2. if num < 100:
  3.     print('Less than 100')
  4. elif num > 200:
  5.     print('Greater than 200')
  6. else:
  7.     print('Between 100 and 200')
  8.  
  9.  
  10. Тарикатско решение:)
  11.  
  12. num = int(input())
  13. print('Less than 100' if num < 100 else 'Greater than 200' if num > 200 else 'Between 100 and 200')
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement