I am running into a problem with repeated values being inserted into a list of dictionaries. I only want to update one of these dictionaries with the key and value information below. Why is it updating all of them in the list?
>>> d = [{}]*3
>>> d
[{}, {}, {}]
>>> d[0]
{}
>>> d[0]['one'] = 1
>>> d
[{'one': 1}, {'one': 1}, {'one': 1}]
Any help is appreciated, thank you!