Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

List Get Sublist

x = [0, 1, 2, 3, 4, 5]
print(x[1:4])
# [1, 2, 3]
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #List #Get #Sublist
ADD COMMENT
Topic
Name
6+3 =