Q. What is the output of len({'a':1,'b':2})?
β
Correct Answer: (B)
2
Explanation: There are two key-value pairs in the dictionary.
Explanation: There are two key-value pairs in the dictionary.