Q.

What is the output of the following program?
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]
Answer» A. 5 None [3, 7, 9]
2k
0
Do you find this helpful?
16

View all MCQs in

Python Programming

Discussion

No comments yet