summaryrefslogtreecommitdiff
path: root/progs/a52.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a52.py')
-rw-r--r--progs/a52.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a52.py b/progs/a52.py
new file mode 100644
index 0000000..4a0b33a
--- /dev/null
+++ b/progs/a52.py
@@ -0,0 +1,6 @@
+from collections import defaultdict
+def grouping_dictionary(l):
+ d = defaultdict(list)
+ for k, v in l:
+ d[k].append(v)
+ return d \ No newline at end of file