Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Provider Logo

Python Data Structures: Dictionaries

via LinkedIn Learning


Learn how to use dictionaries to store and retrieve unordered data in Python.

Dictionaries are a common data structure in Python programming, designed to hold a sequence of key-value pairs. Dictionaries are dynamic, can be nested, and are preferable to lists in situations where you would want to search for and retrieve data with the same key. Being able to use dictionaries effectively is critical to mastering Python and create more efficient code. In this course, Deepa Muralidhar reviews the syntax and real-world use cases for dictionaries. Discover how to create a simple dictionary, iterate through the data, incorporate operations and comparators, and compare dictionaries to other common data structures such as lists, sets, and tuples. Plus, find out how to use dictionary comprehension to automate dictionary generation by merging lists or arrays.


  • Python dictionaries and why you should use them
  • What you should know
1. Basic Concept and Syntax of Python Dictionary
  • What is a dictionary in Python?
  • Creating a dictionary
  • Iterating through a dictionary
  • Challenge
  • Solution
2. Operators and Methods
  • Basic Python dictionary operations and comparators
  • Python dictionary methods
  • Using Python lists within a dictionary
  • Challenge
  • Solution
3. Compare Dictionaries with Other Data Structures
  • Dictionary vs. lists
  • Dictionary vs. sets and tuples
  • Implementation of dictionaries as hash tables in Python
  • Quiz introduction
4. Dictionary Comprehension
  • Understanding comprehension
  • Understanding dictionary comprehension with an example
  • Challenge
  • Solution
  • Next steps for Python dictionaries

Taught by

Deepa Muralidhar

Related Courses


0.0 rating, based on 0 reviews

Start your review of Python Data Structures: Dictionaries

Never stop learning Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free