python make copy of dictionary code example Example 1: python copy ddictionary dict2 = dict1.copy() Example 2: copy a dictionary python new_dict = old_dict.copy()