📊 Problem Solving and Python Programming
Q. print(list(d.keys()))
  • (A) [“john”, “peter”]
  • (B) [“john”:40, “peter”:45]
  • (C) (“john”, “peter”)
  • (D) (“john”:40, “peter”:45)
💬 Discuss
✅ Correct Answer: (A) [“john”, “peter”]

Explanation: the output of the code shown above is a list containing only keys of the dictionary d, in the form of a list.


Explanation by: Mr. Dubey
the output of the code shown above is a list containing only keys of the dictionary d, in the form of a list.

💬 Discussion

📊 Question Analytics

👁️
158
Total Visits
📽️
3 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
83%
Success Rate