Multiple Choice
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]
A) [1, 2, 3]
B) [4, 5, 6]
C) [1, 2, 3, 4, 5, 6]
D) invalid code
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q9: The _ exception is raised when a
Q11: The _ method is commonly used to
Q11: The remove method removes all occurrences of
Q12: The sort method rearranges the elements of
Q15: What are the data items in the
Q20: Lists are _, which means their elements
Q32: The _ function returns the item that
Q33: The _ method reverses the order of
Q37: Lists are dynamic data structures such that
Q38: Each element in a tuple has a(n)_