Develop Python Comprehensions

By Larry Fritts

Learn comprehensions in Python, a way to write clean and efficient code when used appropriately.

1 hour
  • 9 Lessons
  • 1 Hands-On Lab

About the course

Comprehensions are a way to write clean and efficient code when used appropriately. They can be used with both lists and dictionaries. They are a popular “go-to” in Python; a developer should be able to both read and write comprehensions in Python.

  • Chapter 1 1 Lesson Introduction 1:14

    Learn Why Comprehensions Are Important, and About Me

  • Chapter 2 7 Lessons Comprehensions 46:36

    You Will Be Able To...


    Substitute a for Loop with a List Comprehension


    Substitute a for Loop with a Dict Comprehension


    Add Conditionals to Comprehensions


    Learn to Write Nested Comprehensions


    Use a Function for the Result of a Comprehension: Introducing Map


    Exchange the Given For-Loop for a Comprehension

    0:00 Hands-On Lab
  • Chapter 3 1 Lesson Conclusion 0:52

    Continuing the Learning Journey


What are Hands-on Labs

What's the difference between theoretical knowledge and real skills? Practical real-world experience. That's where Hands-on Labs come in! Hands-on Labs are guided, interactive experiences that help you learn and practice real-world scenarios in real cloud environments. Hands-on Labs are seamlessly integrated in courses, so you can learn by doing.

Practice alongside courses in Cloud Playground

What is Cloud Playground? Cloud Playground lets you build skills in real-world AWS, Google Cloud, and Azure environments. Spin up risk-free Sandboxes, Servers and Terminals and follow along with courses, test a new idea or prepare for exams.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!