Explain the dictionary in Python.

4 views

1 Answers

1.  Python’s built-in data type is dictionary, which defines one-to-one relationships between keys and values.

2.  Dictionary is indexed by keys.

3.  Dictionary is similar to association array or hash table of other languages.

4.  Dictionary consist of pairs’-of keys and their corresponding values.

4 views