loading...

re: Pythonic code: the list comprehension VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for the post! I think "pythonic" is such an important yet hard to grasp concept. Quick question: how does the following compare with your ...
 

Yes, the last example was a bit contrived to illustrate the possibility of nested comprehensions. I'm a big fan of knowing built-in function so I think using zip is a perfectly reasonable and Pythonic alternative.

code of conduct - report abuse