T

Tanmay • 2.43K Points
Master

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())
  • (A) 3
  • (B) 8
  • (C) 5
  • (D) 4
  • Correct Answer - Option(D)
  • Views: 137
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics