Q. Which of the following statements create a dictionary?

  • (A) d = {}
  • (B) d = {“john”:40, “peter”:45}
  • (C) d = {40:”john”, 45:”peter”}
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
Explanation: dictionaries are created by specifying keys and values.

Explanation by: Mr. Dubey
dictionaries are created by specifying keys and values.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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