Introduction
Dictionary comprehension helps you create new dictionaries quickly and clearly from existing data.
You want to make a new dictionary from a list of items.
You need to change keys or values in a dictionary easily.
You want to filter items while creating a dictionary.
You want to write less code to build dictionaries.
You want to transform data into a dictionary format.