How to Access Values in Tuples : Index « Tuple « Python Tutorial






aTuple = (123, 'abc', 4.56, ['inner', 'tuple'], 7-9j)

print aTuple[1:4]

print aTuple[:3]
print aTuple[3][1]








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