Dictionaries

Dictionaries are one of the most used data structures in Python. Let's learn about dictionaries in python

We'll cover the following...

Python dictionary is basically a hash table or a hash mapping. In some languages, they might be referred to as associative memories or associative arrays. They are indexed with keys, which can be any immutable type. For example, a string or number can be a key. You need to be aware that a dictionary is an unordered set of key:value pairs and the keys must be unique. You can get a list of keys by calling a dictionary instance’s keys method. To check if a dictionary has a key, you ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy