Skip to Content
Creating Dictionaries
Empty Dictionary

A dictionary doesn’t have to contain anything. You can create an empty dictionary:

empty_dict = {}

We can create an empty dictionary when we plan to fill it later based on some other input. We will explore ways to fill a dictionary in the next exercise.



Create an empty dictionary called my_empty_dictionary.

Folder Icon

Sign up to start coding

Already have an account?