Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple slicing in python

#modify tuples using slicing
my_tuple = (1,2,3,4,5,6,7)
sliced_tuple = my_tuple[1:4] # indexes 0 to 3
 
PREVIOUS NEXT
Tagged: #tuple #slicing #python
ADD COMMENT
Topic
Name
3+3 =