Robotics & Artificial Intelligence

To define a dictionary in Python, which bracket is used?

  1. Curly{}
  2. Square[]
  3. Small()
  4. None of these

Getting Started

2 Likes

Answer

Curly{}

Reason — In Python, a dictionary is enclosed in curly braces {} and stores data in the form of key-value pairs.

Answered By

2 Likes


Related Questions