diff options
Diffstat (limited to 'progs/a537.py')
-rw-r--r-- | progs/a537.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a537.py b/progs/a537.py new file mode 100644 index 0000000..f1b2e6a --- /dev/null +++ b/progs/a537.py @@ -0,0 +1,5 @@ +def group_keyvalue(l):
+ result = {}
+ for k, v in l:
+ result.setdefault(k, []).append(v)
+ return result
\ No newline at end of file |