Home / Programming MCQs / Python MCQs / Question

S

Shivam • 8.86K Points
Tutor III

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)
(A) 5 None [3, 7, 9]
(B) 5 1 [3, 7, 9]
(C) 5 1 [3, 7, 9]
(D) 5 None [1, 3, 7, 9]

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.