Built-in Functions : Introduction « Tuple « Python Tutorial






t = (['xyz', 123], 23, -103.4)
print str(t)
print len(t)
print max(t)
print min(t)
print cmp(t, (['xyz', 123], 23, -103.4, 'free', 'easy'))
print list(t)








6.1.Introduction
6.1.1.Tuples: Immutable Sequences
6.1.2.How to write a tuple containing a single value.
6.1.3.Single-Element Tuples
6.1.4.One comma can change the value of an expression completely:
6.1.5.Using Tuples
6.1.6.Assigning Multiple Values at Once
6.1.7.Built-in Functions