how yo get last elemt of array python code example Example: last element of list python list1 = ['a','b','c'] print(list1[-1])