Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take index first and last in python in one way

[some_list[0], some_list[-1]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #index #python
ADD COMMENT
Topic
Name
1+8 =