Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list_numbers = list(map(float, input().split(' ')))
- dict_numbers = {}
- for num in list_numbers:
- count = list_numbers.count(num)
- dict_numbers[num] = count
- for key, value in sorted(dict_numbers.items()):
- print(f"{key} -> {value} times")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement