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