On 02/04/16 08:22, Daniella Sapozhnikova wrote:
> I have a couple of questions.
> 1) If I wanted to combine two dictionaries into one, how would I go about
> doing so? (the .update method?)
I'm not sure what you mean by that. There are at kleat 2 ways to
interpret it.
Do you want to merge the data
Daniella Sapozhnikova writes:
> 1) If I wanted to combine two dictionaries into one, how would I go
> about doing so?
How to do it depends on what policy you want to adopt for duplicate
keys:
* Existing item stays?
* New item overrides existing item?
* Something else happens?
> (the .update
I have a couple of questions.
1) If I wanted to combine two dictionaries into one, how would I go about
doing so? (the .update method?)
2) How can I make that combined dictionary have inner dictionaries with the
inner values from the previous separate dictionaries?
Please point me in the right dir