This was causing me a bit of grief...
I created a dictionary from a list
l = [\'a\',\'b\',\'c\'] d = dict.fromkeys(l, [0,0]) # initializing dictionar
You could use a dict comprehension:
>>> keys = ['a','b','c'] >>> value = [0, 0] >>> {key: list(value) for key in keys} {'a': [0, 0], 'b': [0, 0], 'c': [0, 0]}