Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to access range of tuples in python

thistuple = ("apple", "banana", "cherry","watermelon","muskmelon","pear","rasbarry")
print(thistuple[1:4])
print(thistuple[:4])#same as the first one
print(thistuple[4])
 
PREVIOUS NEXT
Tagged: #access #range #tuples #python
ADD COMMENT
Topic
Name
4+8 =