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
Let's say d is your dictionary. Here, if you do d.copy(). It returns shallow copy that doesn't work when you have nested dictionary into d dictionary. To overcome from this issue, we have to use deepcopy.
from copy import deepcopy
list.append(deepcopy(d))