A tuple containing an integer : Tuple Creation « Tuple « Python






A tuple containing an integer

A tuple containing an integer

y = (40,)        # a tuple containing an integer
print y


           
       








Related examples in the same category

1.Tuple sequenceTuple sequence
2.tuple assignmenttuple assignment
3.tuples: swaps valuestuples: swaps values
4.Tuple assigmentTuple assigment
5.Create tuple from an integerCreate tuple from an integer