πŸ“Š Python
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’]
πŸ’¬ Discuss
βœ… Correct Answer: (C) [‘A’, ‘B’]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
197
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
90%
Success Rate