Sobes.tech
Junior — Middle+

What output will the program produce when attempting to modify a tuple?

livecode

Task condition

Determine what will be printed to the console after executing the following code. The code attempts to modify a tuple by adding an element to a nested list.


data = (['bee'], 'pygen')
data[0] += ['geek']
print(data)