Addressing the last element of a list
Andreas Lobinger
andreas.lobinger at netsurf.de
Tue Nov 8 04:06:43 EST 2005
Aloha,
pinkfloydhomer at gmail.com wrote:
> Isn't there an easier way than
> lst[len(lst) - 1] = ...
lst[-1] = ...
Wishing a happy day
LOBI
More information about the Python-list
mailing list