Advertisement
vasil_k_k

07. Group of 10's

Dec 8th, 2022 (edited)
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. for i in range(1, int(round(max(numbers := [int(x) for x in input().split(", ")]) / 10 + 0.4)) + 1):
  2.     print(f'Group of {i * 10}\'s: {[x for x in numbers if i * 10 - 10 < x <= i * 10]}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement