CBSE Class 11 Computer Science Question 69 of 104

List Manipulation — Question 5

Back to all questions
5
Question

Question 5

Given a list L1 = [3, 4.5, 12, 25.7, [2, 1, 0, 5], 88], which function can change the list to:

  1. [3, 4.5, 12, 25.7, 88]
  2. [3, 4.5, 12, 25.7]
  3. [ [2, 1, 0, 5], 88]

Answer

  1. L1.pop(4)
  2. del L1[4:6]
  3. del L1[:4]
Answer