Q. What is the output of the following Python code?
Code:
list1 = [1, 2, 3] list2 = list1 list2.append(4) print(list1)
β
Correct Answer: (B)
[1,2,3,4]
list1 = [1, 2, 3] list2 = list1 list2.append(4) print(list1)
You must be Logged in to update hint/solution