how to choose last element of array python code example Example: get last element of array python some_list[-1]