DEV Community

Discussion on: 18 Python one-liners that will speed up your coding process.

Collapse
 
thumbone profile image
Bernd Wechner

If you're going to toy with one-liners like this and justify it on the basis of learning (as most of these are not good practice as others have noted) then I'd suggest you add a little explanatory commentary to the one-liners. I mean for example a few of them are just standard list comprehensions but you don't mention that anywhere and that's a useful piece of vocabulary for a wannabe Python coder and you could group those under an embracing heading of "list comprehensions".

Just a thought.

Collapse
 
yash_makan profile image
Yash Makan

Thanks for the note advice. Added the quote on top.