how to user last values in an array in python code example Example: python last element of list print(list[-1])