Dictionary Data Type in Python

Dictionary Data Type in Python

Python’s dictionaries are dictionaries with the following properties;

  • Having kind of hash table type
  • Work like associative arrays
  • ¬†Work like hashes found in Perl
  • ¬†contains key-value pairs.

A dictionary key type can be of any type but most key types are numbers or strings.

Python Code

Result