Q. What will be the output of the following code snippet?
Code:
a = [1, 2, 3] a = tuple(a) a[0] = 2 print(a)
β
Correct Answer: (D)
Error.
a = [1, 2, 3] a = tuple(a) a[0] = 2 print(a)
You must be Logged in to update hint/solution