Re: [Tutor] week 10 synthesizing assignment

2016-04-02 Thread Alan Gauld
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

Re: [Tutor] week 10 synthesizing assignment

2016-04-02 Thread Ben Finney
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

[Tutor] week 10 synthesizing assignment

2016-04-02 Thread Daniella Sapozhnikova
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