Python Basics Part 12: List and Dictionary Comprehensions in Python

preview_player
Показать описание
There are many types of comprehensions in Python, but the two you'll likely see most will be list comprehensions and dictionary comprehensions.

These powerful single lines of code are able to combine the creation of a list with mapping and filtering all without the need of a lambda function.
Рекомендации по теме