I am a basic python programmer so hopefully the answer to my question will be easy. I am trying to take a dictionary and append it to a list. The dictionary then changes val
Just put dict = {} inside the loop.
dict = {}
>>> dict = {} >>> list = [] >>> for x in range(0, 100): dict[1] = x list.append(dict) dict = {} >>> print list