Q. What is the output of the following code?
Code:
print(len({'a':1,'b':2,'c':3}))
β
Correct Answer: (A)
3
Explanation: len() on a dictionary returns the number of keys, which is 3 here.