lst = [int(i) for i in input().split()]
[print(i, '-', lst.count(i)) for i in set(lst)]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
lst = [int(i) for i in input().split()]
[print(i, '-', lst.count(i)) for i in set(lst)]