get item in last index of list python code example Example 1: get last element of array python some_list[-1] Example 2: how to print last element in a list python lis[len(lis)-1]