Q. How do you create a dictionary in Python?

  • (A) d = {}
  • (B) d = []
  • (C) d = ()
  • (D) d = <>
πŸ’¬ Discuss
βœ… Correct Answer: (A) d = {}
Explanation: Empty curly braces create an empty dictionary.
Explanation by: Mr. Dubey
Empty curly braces create an empty dictionary.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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