Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

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






Indexing a single-item tuple

Indexing a single-item tuple

print  ('x',)[0]

           
       

Related examples in the same category

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