Source Code:
(back to article)
# create a tuple t = (1, 2, 3) # unpack the tuple a, b, c = t # print the variables print(a) # 1 print(b) # 2 print(c) # 3
Result:
Report an issue