Is there a way to slice only the first and last item in a list?
For example; If this is my list:
>>> some_list [\'1\', \'B\', \'3\', \'D\',
Another python3 solution uses tuple unpacking with the "*" character:
first, *_, last = range(1, 10)