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