Tutorials - Reuven M. Lerner: Comprehending comprehensions

No rating
Conference: PyCon US 2023
Year: 2023
Speaker: Reuven M. Lerner
Languages: English

Comprehensions are one of the most important — and misunderstood — parts of Python. In this tutorial, I'll walk you through comprehensions, including how to write them, and why you would want to do so. By the time you finish this tutorial, you'll fully understand list, set and dict comprehensions, as well as nested comprehensions and generator expressions. You'll understand the differences between regular "for" loops and comprehensions, and where to use them.

Comments

No comments yet. Be the first to comment!

Log in to Comment

Cookies analytics

Nous utilisons des cookies analytics uniquement pour les statistiques et l’amélioration du site. Rien n’est activé sans votre consentement explicite.