Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import collections
- data = ["Building Repairs & Maintenance","Books-CDs-Audio-Video","Stationery","Other Services","Building Repairs & Maintenance"]
- duplicate_count = collections.Counter(data)
- for key in duplicate_count:
- print [key]*count[key]
Add Comment
Please, Sign In to add comment