Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

indexing python first and last

l = [1,2,3,4,5]
l[::len(l)-1]
 
PREVIOUS NEXT
Tagged: #indexing #python
ADD COMMENT
Topic
Name
3+8 =