0 out of 68 challenges solved
**Question:** Write a function called exclude_first_last_items that takes a list as input and returns a new list that contains all elements of the original list except for the first and last items. **Example:** Input: exclude_first_last_items([1, 2, 3, 4, 5]) Output: [2, 3, 4]
def exclude_first_last_items(lst): """ Returns a new list that contains all elements of the original list except for the first and last items. Args: lst (list): The input list. Returns: list: The new list with excluded first and last items. """ # TODO: Implement the exclude_first_last_items function pass