l = [1,2,3,4,5] last = l[len(l)-1]
your_list = ["apple", "orange", "grapes"] last_value = your_list[-1]