Python has both "for" loops and comprehensions, and it's not always obvious when to use each. In this video, I give you my rules of thumb for how to decide, and when each is appropriate.
The Jupyter notebook from this video is at https://github.com/reuven/youTube-not.... And don't forget my free, weekly newsletter at https://BetterDevelopersWeekly.com/!