DEV Community

loading...

Discussion on: Are one liners always pythonic?

Collapse
miguelmj profile image
MiguelMJ Author

I think that with semicolons doesn't count as one liner. Also, sometimes on liners improve readability.
However, I think you're right about not having to use always generators. Just because you can doesn't mean that you should!