When I update a value of my dictionary in the loop, it also changes the values of the dictionary already in the list.
I've already tried the following code in Python 3.7
d = {"name": "v0"}
a = []
b = ["v1", "v2", "v3"]
for i in b:
d["name"] = i
a.append(d)
print(a)
I expect that it changes the dictionary in the loop, and adds each representation to the list. However, it adds the same value to the list.