lee fair wrote:I just want to index two pre-existing lists. List of names, list of values), names[0] = values[0] that sort of thing.
Thanks
That seems like zip() not dict():
The output is:
('1', 'one')
('2', 'two')
('3', '3')
So zip makes a List of tuples, indexing each list passed in equally. If you wanted to turn that into a dictionary you do:
which gives me:
{'1': 'one', '3': '3', '2': 'two'}
I am working Python, not Jython, so what of that is what you want, and what is not working?