how to get items at the end of a python list code example Example: python last element of list print(list[-1])