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 www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #List #Slicing
ADD COMMENT
Topic
Name
3+4 =