Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

slicing in python list

a = [1,2,3,4,5]
a[m:n] # elements grrater than equal to m and less than n
a[1:3] = [2,3]
Source by nostarch.com #
 
PREVIOUS NEXT
Tagged: #slicing #python #list
ADD COMMENT
Topic
Name
2+5 =