Q. What is the output of the following program?
Code:
L = [1, 3, 5, 7, 9] print(L.pop(-3), end = ' ') print(L.remove(L[0]), end = ' ') print(L)
β
Correct Answer: (A)
5 None [3, 7, 9]
L = [1, 3, 5, 7, 9] print(L.pop(-3), end = ' ') print(L.remove(L[0]), end = ' ') print(L)
You must be Logged in to update hint/solution