23
What is the output of the following code?
a = [1, 2, 3]
a[1:2] = [7, 8, 9]
print(a)Medium
What is the output of the following code?
a = [1, 2, 3]
a[1:2] = [7, 8, 9]
print(a)Log in to join the discussion.