Re: Nested dictionaries from a list ?

2014-12-09 Thread Dave Angel
To: Denis McMahon On 12/07/2014 06:52 PM, Denis McMahon wrote: On Sun, 07 Dec 2014 12:01:26 -0500, Dave Angel wrote: On 12/07/2014 11:18 AM, Wacky wrote: I've a list of users I haven't run this through the Python, so please forgive any typos. users = [ mess = { users

Re: Nested dictionaries from a list ?

2014-12-08 Thread Dave Angel
On 12/07/2014 06:52 PM, Denis McMahon wrote: On Sun, 07 Dec 2014 12:01:26 -0500, Dave Angel wrote: On 12/07/2014 11:18 AM, Wacky wrote: I've a list of users I haven't run this through the Python, so please forgive any typos. users = [ mess = { users is redundant, as

Nested dictionaries from a list ?

2014-12-07 Thread Wacky
New to Python, so please go easy. I've a list of users, who have different profiles on different computers. How to tackle this through lists and dictionaries? Here is the data example. More interested in learning how to declare this structure and add/delete/extract values from whatever data

Re: Nested dictionaries from a list ?

2014-12-07 Thread Dave Angel
On 12/07/2014 11:18 AM, Wacky wrote: New to Python, so please go easy. I've a list of users, who have different profiles on different computers. How to tackle this through lists and dictionaries? Here is the data example. More interested in learning how to declare this structure and

Re: Nested dictionaries from a list ?

2014-12-07 Thread Denis McMahon
On Sun, 07 Dec 2014 08:18:03 -0800, Wacky wrote: New to Python, so please go easy. I've a list of users, who have different profiles . How are you getting on with this assignment / homework? I have a solution I could post, but I thought I'd wait to see what your solution was first.

Re: Nested dictionaries from a list ?

2014-12-07 Thread Denis McMahon
On Sun, 07 Dec 2014 12:01:26 -0500, Dave Angel wrote: On 12/07/2014 11:18 AM, Wacky wrote: I've a list of users I haven't run this through the Python, so please forgive any typos. users = [ mess = { users is redundant, as it's mess.keys() maintaining a separate list of