Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- if num != 0 and num < 100 or num > 200:
- print('invalid')
- Тарикатско решение с тернарен оператор:)
- num = int(input())
- print('' if num == 0 or 100 <= num <= 200 else 'invalid')
Add Comment
Please, Sign In to add comment