Thank you, Matt. It is very basic, but your last example surprised me. And I thought I knew comprehensions through and through. :)
Yep, list comprehensions are a very core concept, and there are some sneaky corners in there that not everyone is aware of. I'm glad the article was able to show you one of those corners!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.