summaryrefslogtreecommitdiff
path: root/progs/a52.py
blob: 4a0b33a69b67e5f6084f32843561d974e4826356 (plain)
1
2
3
4
5
6
from collections import defaultdict
def grouping_dictionary(l):
    d = defaultdict(list)
    for k, v in l:
        d[k].append(v)
    return d