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

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


list1 = [1, 2, 3]


list2 = []


for element in list1:


list2.append(element)


list1 = [4, 5, 6]


Answer: [1, 2, 3]


Learn More :