diff options
Diffstat (limited to 'progs/a85.py')
-rw-r--r-- | progs/a85.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a85.py b/progs/a85.py new file mode 100644 index 0000000..f07b1fe --- /dev/null +++ b/progs/a85.py @@ -0,0 +1,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)))
\ No newline at end of file |