Defining a Tuple : Index « Tuple « Python Tutorial






t = ("a", "b", "c", "z", "example")
print t 
print t[0]                                           
print t[-1]                                         
print t[1:3]








6.6.Index
6.6.1.Defining a Tuple
6.6.2.How to Access Values in Tuples