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
need an explanation for this answer? contact us directly to get an explanation for this answer