summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a477.py
blob: ffe95edf72b9a79a1fd14e14e1bd7f9ad266e2b5 (plain)
1
2
3
4
from collections import Counter 
def assign_freq(test_list):
  res = [(*key, val) for key, val in Counter(test_list).items()]
  return (str(res))