Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

example of slicing in python

my_list = [2,4,7,8,22]
print(my_list[1::2])#item start through 1st index  and make step of 2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #slicing #python
ADD COMMENT
Topic
Name
2+6 =