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