This lesson wraps up the course on list lomprehensions with a word of warning. Comprehensions are a powerful feature of Python but they can lead to unreadable code when overused or when poorly formatted.
You learned when not to use list comprehensions and also what strategies you can apply to help you decide when to use them.
Resources
Congratulations, you made it to the end of the course! Make it stick: Mentor AI will check what you’ve got down, help you build something with it, and find your #1 takeaway to share in the discussion.
Or go straight to the discussion section and share your #1 takeaway and how you’ll put your new skills to use.
Pygator on Dec. 22, 2019
The formula for the general list comprehension with condition and expression is a helpful abstraction.