Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = list(map(int, input().split(", ")))
- group = 10
- while group < max(numbers) + 10:
- filtered = [num for num in numbers if group - 10 < num <= group]
- print(f"Group of {group}'s: {filtered}")
- group += 10
Advertisement
Add Comment
Please, Sign In to add comment