Suppose you have the following code:
my_tuple = 1, 2, 'a', 'b'
a, b, *c, d, e = my_tuple
As you can see, the tuple has four items, and we want to unpack it into 5 variables. What will happen in this case?
Suppose you have the following code:
my_tuple = 1, 2, 'a', 'b'
a, b, *c, d, e = my_tuple
As you can see, the tuple has four items, and we want to unpack it into 5 variables. What will happen in this case?
Create a free account to access the full topic