python print the last item in a list code example Example: get last element of array python some_list[-1]