Dictionary Operations

In this lesson, we'll learn about some operations that help us use a dictionary to its full potential.

Adding/Updating Entries #

We can add new entries in a dictionary by simply assigning a value to a key. Python automatically creates the entry.

If a value already exists at this key, it will be updated:

Get hands-on with 1200+ tech skills courses.