Hello, today we are covering dictionaries, a way of storing information that's genuinely different from everything else in this series so far.
This is Episode 7 of the Programming series on The Knowledge Lab. We start with a phone contacts app comparison and build all the way up to a full contact book application.
What you will learn in this video:
What a dictionary is, and how it stores key value pairs
Accessing a value by its key
What happens when a key doesn't exist, and how to handle it safely with get()
Adding a new key or updating an existing one
Removing a key with del and pop
Checking if a key exists with in
Three ways to loop through a dictionary, keys, values, and items
A real product inventory example
Nested dictionaries, explained with a full contact book
Why dictionary keys must be immutable
A complete contact book application built from everything in this lesson
Subscribe so you do not miss a lesson. New video every day.