Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nums = list(map(float, input().split(" ")))
- counts = {}
- for num in nums:
- if num in counts:
- counts[num] += 1
- else:
- counts[num] =1
- for num in sorted(counts.keys()):
- print("{} -> {} times".format(num, counts[num]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement