DEV Community

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

Collapse
 
hmorris94 profile image
Hunter Morris

Interesting post! At work, I'm often just looking for quick ways to parse a one-off dataset or other small things like that, and it doesn't have to be readable or maintained by anyone but myself, so I use several of these (admittedly non-Pythonic) schemes. Writing for a team is different. This is still quite useful, especially to learn the extent of some of the nuanced features that this language has. Cheers.

print(*range(1,5)) didn't work for me (running Python 3.10), but Walrus:= taught me a new trick and I will definitely be using it.

Collapse
 
yash_makan profile image
Yash Makan

Glad I could help. Thanks for reading