1>>> import copy
2>>> nums = [1, 2, 3]
3>>> data = {'a': 10, 'b': nums}
4>>> data
5{'a': 10, 'b': [1, 2, 3]}
6>>> data_copy = copy.copy(data)
7>>> data_deep = copy.deepcopy(data)
8>>> data_copy
9{'a': 10, 'b': [1, 2, 3]}
10>>> data_deep
11{'a': 10, 'b': [1, 2, 3]}
12>>> data_copy['a'] += 2
13>>> nums[1:1] = [254]
14>>> data
15{'a': 10, 'b': [1, 254, 2, 3]}
16>>> data_copy
17{'a': 12, 'b': [1, 254, 2, 3]}
18>>> data_deep
19{'a': 10, 'b': [1, 2, 3]}
1>>> import copy
2>>> a = 0
3>>> b = 2
4>>> a = copy.copy(b)
5>>> b += 1
6>>> a
72
8>>> b
93
1new_list = list.copy()
2
3# returns a new list without modifying the orginal list.