What is the difference between shallow copy, deepcopy and normal assignment operation?
What is the difference between shallow copy, deepcopy and normal assignment operation? Question: import copy a = “deepak” b = 1, 2, 3, 4 c = [1, 2, 3, 4] d = {1: 10, 2: 20, 3: 30} a1 = copy.copy(a) b1 = copy.copy(b) c1 = copy.copy(c) d1 = copy.copy(d) print(“immutable – id(a)==id(a1)”, id(a) == …