Easy
Drop the Ends
Read a list of words and print it without its first and last element, using the slice
[1:-1].Input
One line.
Output
A list.
Sample 1
Input
a b c d
Output
['b', 'c']
Sample 2
Input
x y
Output
[]
Output appears here[1:-1].One line.
A list.
a b c d
['b', 'c']
x y
[]
Output appears here