Dictionary comprehension
A Python expression that creates a dictionary, using the syntax
{KEY: VALUE for ITEM in ITERABLE}
{KEY: VALUE for ITEM in ITERABLE if CONDITION}
similar to set-builder notation.
A Python expression that creates a dictionary, using the syntax
{KEY: VALUE for ITEM in ITERABLE}
{KEY: VALUE for ITEM in ITERABLE if CONDITION}
similar to set-builder notation.