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\',
What about this?
>>> first_element, last_element = some_list[0], some_list[-1]