loading...

re: Pythonic code: the list comprehension VIEW POST

FULL DISCUSSION
 

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!

code of conduct - report abuse