Indexing a 2-item tuple : Tuple Index « Tuple « Python






Indexing a 2-item tuple

Indexing a 2-item tuple

print ('x', 'y')[1]

           
       

Related examples in the same category

1.Tuple indexing and slicingTuple indexing and slicing
2.Display one item through an index
3.Indexing a single-item tupleIndexing a single-item tuple