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 can use this:
l = ['a', 'b', 'c'] d = dict((k, [0, 0]) for k in l)