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