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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.