Advertisement
bl00dt3ars

07. Group of 10's

Jun 19th, 2021
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. sequence_of_numbers = [int(num) for num in input().split(", ")]
  2.  
  3. for i in range(1, int(-(-(max(sequence_of_numbers) / 10) // 1)) + 1):
  4.     print(f"Group of {i}0's: {[sequence_of_numbers[x] for x in range(len(sequence_of_numbers)) if sequence_of_numbers[x] in range(i * 10 - 10 + 1, i * 10 + 1)]}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement