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