I have a dictionary called dict with three variables
Then I have an array that has to include the dictionary but add a new variable to it called name each time.
Now at the end all the names are becoming equal, how would I get around this problem?
dict = {"a" :1, "b" : 2, "c" : 3};
items = [];
item1.tempdict = dict;
item1.tempdict.name = 4;
item2.tempdict = dict;
item2.tempdict.name = 5;
item3.tempdict = dict;
item3.tempdict.name = 6;
thanks