Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = [int(n) for n in input().split(", ")]
- check_numbers = list()
- for number in range(1, 10 + 1):
- check_numbers.clear()
- if len(numbers) != 0:
- for num in numbers:
- if int(num) <= number * 10:
- check_numbers.append(num)
- for d in check_numbers:
- numbers.remove(d)
- print(f"Group of {number * 10}'s: {check_numbers}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement