access last in array python code example Example 1: get last element of array python some_list[-1] Example 2: python last element of list print(list[-1])