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:
- [3, 4.5, 12, 25.7, 88]
- [3, 4.5, 12, 25.7]
- [ [2, 1, 0, 5], 88]
Answer
- L1.pop(4)
- del L1[4:6]
- del L1[:4]