Re: [Tutor] Creating a dictionary on user filter

2012-07-20 Thread Peter Otten
Mike Nickey wrote: > What I have is this: > firstList = ['a', 'b', 'c'] > secondList = [1,2,3] > thirdList = [1.20, 1.23, 2.54] > > What I am looking for is something like this for output: > {'a': [1, 1.20], 'b': [2, 1.23], 'c': [3, 2.54]} To get this combine second and third into the list of va

[Tutor] Creating a dictionary on user filter

2012-07-19 Thread Mike Nickey
Hi All, I have a few lists that I'm trying to put into a dictionary based on which list the user wants to use as a filter. If the user selects 1 the the dictionary would be created using the first list as the keys and the secondary items as the values. If the user selects 2, the dictionary would b