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.
- Host: GitHub
- URL: https://github.com/candytale55/remove_middle_python
- Owner: candytale55
- Created: 2020-12-15T11:29:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-15T11:37:58.000Z (over 5 years ago)
- Last Synced: 2023-05-29T01:21:02.538Z (about 3 years ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0