Q. Write the output of the following:
Code:
L = ["A","B","C","D","E"]
for i in range(len(L)-2):
L.pop()
print(L)
β
Correct Answer: (C)
[‘A’, ‘B’]
L = ["A","B","C","D","E"]
for i in range(len(L)-2):
L.pop()
print(L)
You must be Logged in to update hint/solution