Dictionary Data Type in Python

By Prof. Fazal Rehman Shamil
Last modified on March 3rd, 2022

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


Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.