made a copy of a dictionary but still changing original dictionary python code example Example: copy a dict in python dict2 = dict1.copy()