Comprehensions — list, dict, and set — are a powerful Python feature that make your code shorter, more efficient, and more expressive. However, a large number of Python developers think of comprehensions as nothing more than "for" loops with a hard-to-understand syntax, and avoid using them. That's a shame, because comprehensions aren't that hard, and are quite useful for solving a wide variety of problems.
This course will explores comprehensions, starting with the basic syntax and use cases, working up to nested comprehensions that allow us to solve more complex problems. The course includes a large number of hands-on exercises, as well as an even larger number of live-coding demos.
By the time the course is over, you will no longer wonder when or how to use comprehensions. Instead, you'll know how, when, and why to use comprehensions, making you a more fluent Python developer.
The course includes:
- Nearly two hours of video
- More than 15 exercises
- PDFs of the slides I use to teach this subject
- Files used for exercises
- The Jupyter notebook from my on-screen lectures
If you are a Python developer, and haven't yet figured out how, when, or when to use comprehensions, then this course is for you. It'll allow you to do more in less time, and with less code. It'll help you to tap into one of Python's most powerful tools, and understand code that others have written.