how to copy a dictionary with some key value changes code example Example: copy a dict in python dict2 = dict1.copy()