how to copy the dictionary without modifying the parent dictionary code example Example: copy a dict in python dict2 = dict1.copy()