[Tutor] Question on List of Dict
Danny Yoo
dyoo at hashcollision.org
Fri Sep 19 09:28:44 CEST 2014
> {'a': 2, 'b': 'another', 'c': 754},
> {'a': 2, 'b': 'word', 'c': 745}
>
> if the value of the 'a' is same, then all those other values of the dict
should be merged/clubbed.
Can you write a function that takes two of these and merges them? Assume
that they have the same 'a'. Can you write such a function?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140919/e83ac169/attachment.html>
More information about the Tutor
mailing list