Dictionary Data Type in Python

By: Prof. Dr. Fazal Rehman Shamil | Last updated: February 3, 2024

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

Leave a Reply