Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def alert_group(messages):
- if messages <= 300:
- return 'средний'
- if messages <= 500:
- return 'высокий'
- return 'критичный'
- print(alert_group(10))
- print(alert_group(450))
- print(alert_group(1000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement