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