Parsing Python dictionary with multiple objects

Anurag Patibandla anuragpatibandla7 at gmail.com
Wed Oct 15 11:52:30 EDT 2014


Thanks Rustom for the advice.
I am new to Python and getting struck at some basic things. How do I assign the values that I am printing to 3 variables say dict1, dict2, dict3?
When I try to assign them before the print statement like this:
d1, d2, d3 =[(queues[j], json.get(queues[j])) for j in range(len(queues))]

I get an error saying 'need more than one value to unpack'



More information about the Python-list mailing list