Create tuple from an integer : Tuple Creation « Tuple « Python






Create tuple from an integer

Create tuple from an integer


x = (40)         # an integer
print x

           
       








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.A tuple containing an integerA tuple containing an integer