T
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())
d = {}
d["python"] = 22
d["java"] = 27
d["php"] = 53
d["c"] = 87
return len(d)
print(getLen())
- Correct Answer - Option(D)
- Views: 164
- Filed under category Python
Discusssion
Login to discuss.