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