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

    1:14
  • Chapter 2 7 Lessons Comprehensions 1:46:36

    You Will Be Able To...

    1:33

    Substitute a for Loop with a List Comprehension

    9:14

    Substitute a for Loop with a Dict Comprehension

    7:01

    Add Conditionals to Comprehensions

    13:49

    Learn to Write Nested Comprehensions

    7:47

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

    7:12

    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

    0:52

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!