Q. Which of the following is not a declaration of the dictionary?

  • (A) {1: ‘a’, 2: ‘b’}
  • (B) dict([[1,”a”],[2,”b”]])
  • (C) {1,”a”,2”b”}
  • (D) { }
πŸ’¬ Discuss
βœ… Correct Answer: (C) {1,”a”,2”b”}
Explanation: option c is a set, not a dictionary.

Explanation by: Mr. Dubey
option c is a set, not a dictionary.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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