Comprehensions in Python

Purchase a Subscription!

Watch the first few minutes on us! If you'd like to watch the entire video and hundreds more like it, download code samples, access offline videos and skills assessments, and use the discussion forums, log in or purchase a subscription.


Eric Greene


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

{{toc.Position}} {{toc.Text}}

Related Links

  • {{link.LinkText}} (requires a paid subscription)


This course is part of the following series: