In the course Data Handling With Python we look at list comprehensions in Python. Similar to its sibling the list comprehension, a dictionary comprehension is nothing more than a shorthand way of creating a new dictionary collection. While it may seem a little more complicated than the list version, it is actually quite simple to understand. In this lesson from that course you’ll learn exactly what dictionary comprehensions are and how you can use them.
Watch the complete course: https://code.tutsplus.com/courses/data-handling-with-python?utm_campaign=yt_tutsplus_aGuWxW6Y9M4&utm_medium=referral&utm_source=youtube.com&utm_content=description