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]
 
PREVIOUS NEXT
Tagged: #List #Slicing
ADD COMMENT
Topic
Name
9+1 =