python end of list value code example Example 1: get the last element of a list python print(list[-1]) Example 2: how to print last element in a list python lis[len(lis)-1]