Empty tuples are constructed by an empty pair of parentheses : Tuple Declaration « Tuple « Python






Empty tuples are constructed by an empty pair of parentheses

Empty tuples are constructed by an empty pair of parentheses
empty = ()

print len(empty)

           
       








Related examples in the same category

1.Create an empty tuple
2.A tuple consists of a number of values separated by commasA tuple consists of a number of values separated by commas
3.A tuple with one item: a comma A tuple with one item: a comma