Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

List Slicing

This slice object can take three arguments; 
slice(start, end, step)

fruits = ["apple", "banana", "peach", "pear", "plum", "orange"]
x = slice(1, 4, 2)
fruits[x]
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #List #Slicing
ADD COMMENT
Topic
Name
2+3 =