you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago

I'll agree that list comprehensions can be a bit annoying to write because your IDE can't help you until the basic loop is done, but you solve that by just doing [thing for thing in things] and then add whatever conditions and attr access/function calls you need.

  • source