How do I get the last element of a list? Which way is preferred?
alist[-1] alist[len(alist) - 1]
← Назад к списку