Q. What will be the output of this code?
Code:
x = [1, 2, 3] print(x * 2)
β
Correct Answer: (A)
[1, 2, 3, 1, 2, 3]
Explanation: Multiplying a list by an integer repeats the list.