Membership, Slicing : Member in « Tuple « Python Tutorial






t = (['xyz', 123], 23, -103.4)
print 23 in t
print 123 in t
print t[0][1]
print t[1:]








6.8.Member in
6.8.1.Membership, Slicing