Tuple assigment : Tuple Creation « Tuple « Python






Tuple assigment

Tuple assigment

[a, b, c] = (1, 2, 3)
print a, c

(a, b, c) = "ABC"
print a, c

           
       








Related examples in the same category

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