Update combine_values.md

Fixes #439
This commit is contained in:
Isabelle Viktoria Maciohsek
2021-04-04 14:32:35 +03:00
committed by GitHub
parent 38bc69c716
commit ac0e57c642

View File

@ -24,5 +24,5 @@ def combine_values(*dicts):
d1 = {'a': 1, 'b': 'foo', 'c': 400}
d2 = {'a': 3, 'b': 200, 'd': 400}
combine_values(d1, d2) # {'a': [1, 3], 'b': ['foo', 200], 'c': 400, 'd': 400}
combine_values(d1, d2) # {'a': [1, 3], 'b': ['foo', 200], 'c': [400], 'd': [400]}
```