summaryrefslogtreecommitdiff
path: root/progs/a537.py
blob: f1b2e6a997720d0ca11bd55f853af5779f27a47b (plain)
1
2
3
4
5
def group_keyvalue(l):
    result = {}
    for k, v in l:
         result.setdefault(k, []).append(v)
    return result