python dictionary comprehension syntax code example
Example 1: create dictionary comprehension python
{key:value for key in iterable}
Example 2: dict comprehension
# Dictionary comprehension
{i:i*2 for i in range(10)}
{key:value for key in iterable}
# Dictionary comprehension
{i:i*2 for i in range(10)}