Tuple indexing and slicing : Tuple Slice « Tuple « Python






Tuple indexing and slicing

Tuple indexing and slicing


T = (1, 2, 3, 4)            # indexing, slicing
print T[0], T[1:3]


           
       

Related examples in the same category

1.Display a sliceDisplay a slice