πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
218
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
98%
Success Rate