Advertisement
dimanou_04

Untitled

Sep 15th, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. from collections import Counter
  2.  
  3. nums = input().split(' ')
  4.  
  5. counter = Counter(nums)
  6.  
  7. for num, count in counter.items():
  8. print(f"{float(num):.1f} - {count} times")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement