• Badabinski@kbin.earth
    link
    fedilink
    arrow-up
    2
    ·
    2 days 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.