how to print the last element of an array 2*2 in python code example Example: get the last element of a list python print(list[-1])