A syntactic construct in Python which provides a concise way to create dictionaries.
Dictionary comprehensions can be used to construct dictionaries in one line. For simple tasks, a dictionary comprehension may be more readable than dictionaries built using looping constructs.
Dictionary comprehensions tend to consist of an input sequence of either a list or another dictionary, variable bindings, a filtering predicate, and an output expression.
The result is a new dictionary.
Dictionary comprehensions are very similar to list comprehensions.