08-Python Basic

Dictionary and dictionary operations

8. Dictionary Data Structure

Dictionaries are used to store data values in key-value pairs

  • Duplicate keys are not allowed but values can be duplicated.
  • Hetrogeneous objects are allowed for both key and values.
  • Insertion order is not preserved
  • Dictionaries are mutable
  • Indexing and slicing concepts are not applicable

As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.

[Read More]