Given a list and we have to remove elements in a range from the list in Python.
del list(start_index, end_index)
del() method is used to remove all elements of list in range starting from start_index to end_index.
Syntax:
del list(start_index, end_index)
Program:
Output
List element: 10 20 30 40 50 List element after del[1:3]: 10 40 50need an explanation for this answer? contact us directly to get an explanation for this answer