blob: 1d116bc0016a2892e3a306eb020cf4ad8bcf9773 (
plain)
1
2
3
4
5
6
7
8
|
# FIXME: multiple variable assignment in for loop
#
# from collections import defaultdict
# def grouping_dictionary(l):
# d = defaultdict(list)
# for k, v in l:
# d[k].append(v)
# return d
|