Which of the following is used to create a dictionary in Python?

Options

  • A. []
  • B. ()
  • C. {}
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. {}

Detailed Explanation

A dictionary is generally created using curly braces {} with key-value pairs.