Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groups = list(map(int, input().split(', ')))
- max_num = max(groups)
- for i in range(10, max_num + 10, 10):
- if max_num + 9 < i:
- break
- print(f"Group of {i}'s: {[x for x in groups if i - 10 < x <= i]}")
Add Comment
Please, Sign In to add comment