Answers for "copy values from other dict"

12

copy a dict in python

dict2 = dict1.copy()
Posted by: Guest on February-18-2020
1

how to copy one dictionary to another in python

import copy

dict2 = copy.deepcopy(dict1)
Posted by: Guest on December-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language