Source Code:
(back to article)
my_dict = {"name": "John", "age": 30, "city": "New York"} my_dict_copy = my_dict.copy() print(my_dict)
Result:
Report an issue