Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get range of items of python list

names = ['Alice', 'Bob', 'Tom', 'Grace']

names[1:3]
# Output:
# ['Bob', 'Tom']
 
PREVIOUS NEXT
Tagged: #range #items #python #list
ADD COMMENT
Topic
Name
2+7 =