Create an empty tuple : Tuple Declaration « Tuple « Python






Create an empty tuple


inventory = ()


           
       

Related examples in the same category

1.A tuple consists of a number of values separated by commasA tuple consists of a number of values separated by commas
2.Empty tuples are constructed by an empty pair of parenthesesEmpty tuples are constructed by an empty pair of parentheses
3.A tuple with one item: a comma A tuple with one item: a comma