Question PRG-PY-0069
HardWhat is the output of this program?
import copy
a = [1, [2, 3]]
b = copy.copy(a)
c = copy.deepcopy(a)
a[1].append(4)
a[0] = 9
print(b, c)
- A.
[1, [2, 3, 4]] [1, [2, 3]]
- B.
[1, [2, 3]] [1, [2, 3]]
- C.
Sign up free to see the answer and a step-by-step explanation.