Comprehensions in Python

Comprehensions in Python

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 0h 49m | 284 MB

Comprehensions are a powerful and expressive means for concisely creating lists, dictionaries, and sets. Comprehensions can simplify your code and make it more maintainable by replacing multiline looping structures and nested calls to functions such as map and filter. Learn why comprehensions are critical to writing modern Python code, and make them part of your Python skill set.

Table of Contents

00:00:00 Introduction
00:01:03 Overview of Comprehensions
00:05:48 List Comprehensions
00:13:59 List Comprehensions in Action (Demo)
00:26:20 Adding Conditions to Comprehensions
00:28:40 Limiting the Output of the Comprehensions (Demo)
00:31:38 Dictionary Comprehensions
00:34:28 Dictionary Comprehensions in Action (Demo)
00:37:22 Set Comprehensions
00:39:31 Set Comprehensions in Action (Demo)
00:41:31 Thinking of Comprehensions as Generators
00:43:25 Passing Comprehensions as Generators (Demo)
00:49:59 Conclusion