How to Access List Last Element Instantly

lst[-1] is O(1). Don't use lst[len(lst)-1]. One character. Same speed.

#python #index #negative #slicing #howto

https://www.youtube.com/watch?v=WlOZATI8euw

How to Access List Last Element Instantly #python

YouTube