📅  最后修改于: 2022-03-11 14:46:21.081000             🧑  作者: Mango
lst = [2, 5 , 6, 3, 8, 9]
n = len(lst) #get the length
last_el = lst[n-1] #get the last element
print("The last element of the list is:", last_el)