DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
PREVIOUS
NEXT
Tagged:
#slicing
#python
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit