Dictionary comprehensions
We are going to look at Dictionary comprehensions in python
Dictionary comprehensions started life in Python 3.0, but were backported to Python 2.7. They were originally proposed in the Python Enhancement Proposal 274 (PEP 274) back in 2001. They are pretty similar to a list comprehension in the way that they are organized.
The best way to understand is to just do one!
Get hands-on with 1400+ tech skills courses.