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