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 last example in terms of trying to be more pythonic?
pairs = list(zip(xs, ys))
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.
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.