summaryrefslogtreecommitdiff
path: root/progs/a85.py
blob: f07b1fecc70ea0213553f8922135180532ecd52a (plain)
1
2
3
4
5
6
from collections import defaultdict 
def freq_element(test_tup):
  res = defaultdict(int)
  for ele in test_tup:
    res[ele] += 1
  return (str(dict(res)))