In this example we will show how to make a copy of a dictionary with the dict() function in Python.
Source Code
mydict = {
'name': 'Steven',
'age': 24,
'ID': 123456
}
mydict_1 = dict(mydict)
print(mydict_1)
Output:
{'name': 'Steven', 'age': 24, 'ID': 123456}