Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to modify tuples 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: #modify #tuples #python
ADD COMMENT
Topic
Name
1+4 =