DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+7 =
Submit