An open API service indexing awesome lists of open source software.

https://github.com/candytale55/remove_middle_python

Create a function named remove_middle which has three parameters (lst, start, end). The function should return a list where all elements in lst with an index between start and end (inclusive) have been removed. For example remove_middle([4, 8 , 15, 16, 23, 42], 1, 3) should return [4, 23, 42] because elements at indices 1, 2, and 3 have been removed.
https://github.com/candytale55/remove_middle_python

Last synced: about 1 year ago
JSON representation

Create a function named remove_middle which has three parameters (lst, start, end). The function should return a list where all elements in lst with an index between start and end (inclusive) have been removed. For example remove_middle([4, 8 , 15, 16, 23, 42], 1, 3) should return [4, 23, 42] because elements at indices 1, 2, and 3 have been removed.

Awesome Lists containing this project