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

πŸ‘οΈ
187
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate