A

Admin • 833K Points
Coach

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)
  • (A) [‘A’, ‘B’, ‘C’]
  • (B) [ ]
  • (C) [‘A’, ‘B’]
  • (D) [‘A’, ‘C’, ‘E’]
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category Python
  • Hashtags:

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.

Be the first to start discuss.