diff options
Diffstat (limited to 'progs/a403.py')
-rw-r--r-- | progs/a403.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a403.py b/progs/a403.py new file mode 100644 index 0000000..18c84b2 --- /dev/null +++ b/progs/a403.py @@ -0,0 +1,5 @@ +from collections import Counter
+from itertools import chain
+def freq_element(nums):
+ result = Counter(chain.from_iterable(nums))
+ return result
\ No newline at end of file |