Q. What is the output of the following code?
Code:
def getLen():
d = {}
d["python"] = 22
d["java"] = 27
d["php"] = 53
d["c"] = 87
return len(d)
print(getLen())
β
Correct Answer: (D)
4