Sobes.tech
Junior — Senior

What will happen if you change the list inside a tuple

livecode

Task condition

What will be the result of the following code snippet when we try to modify the list that is an element of a tuple?

my_list = [1, 2, 3]
my_tuple = (None, "blah", my_list)
my_tuple[-1].extend([4, 5])