Q. What is the output of the following code?
Code:
x = [1, 2, 3] print(len(x))
β
Correct Answer: (B)
3
Explanation: The list contains 3 elements, so len(x) = 3.