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 1: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

    1:00: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.

Get Started
Who’s going to be learning?
Sign In
Welcome Back!

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