middle_section(items) that returns a new list containing every element of items except the first and last one, using slicing. If items has 2 or fewer elements, return an empty list.items = [1, 2, 3, 4, 5]
[2, 3, 4]
Drop the first and last elements.
items = [1, 2]
[]
Only two elements remain after dropping both ends.
items[1:-1] slices from index 1 up to (not including) the last index.