Q. What is the output of this code?
Code:
print([1, 2, 3] * 3)
β
Correct Answer: (B)
[1, 2, 3, 1, 2, 3, 1, 2, 3]
Explanation: Multiplying a list repeats its elements.