What would be the value of the variable list after the execution of the following code?

What would be the value of the variable list after the execution of the following code?


list= [1, 2]


list = list * 3


Answer: [1, 2, 1, 2, 1, 2]


Learn More :