
In our last article, we used filter() to extract even numbers from a list. It worked, but it required a lambda and wrapping the result in list(). There's a more expressive, more Pythonic way to do this: the list comprehension. A list comprehension is...
Aaron Rose is a software engineer and technology writer.
Software engineer and technology writer. I explore Python, Go, AWS, cloud tools, Raspberry Pi projects, and practical DevOps—always from the ground up. More at tech-reader.blog
Markdown supported · ⌘↵ to post
No responses yet.