4 ms·
Well, Python does have a looping facility that can do everything it's comprehensions can do and more. It's just more special syntax and looks somewhat different
by omaranto 7y ago
Well, Python does have a looping facility that can do everything it's comprehensions can do and more. It's just more special syntax and looks somewhat different from the comprehensions (though they do share keywords where appropriate).
I mean, I too prefer loop or iter but Python isn't looping-poor.
- bjoli 7y agoIt can't return a list :) It is as if someone said "wow! Returning something from a loop is useful", but instead of going all the way they added special syntax for it.