10 Elegant Python One Liners

preview_player
Показать описание
A Python one-liner is a snippet of code that solves a problem in a single line. Want to learn to write Pythonic code? Study Python one-liners written by the pros!

Read the full article at:

Buy the Python One-Liner Book (NoStarch Press San Francisco):

 ~~~
Become a better coder! Download the 5x Python Cheat Sheet Course (PDF). It’s free!

🐍 Cheating in Python? Of course! 🐍
See you soon -- it’s fun! 🤓
~~~

Experts in their fields read more books! Become a Python expert:

And become a Python master the fun way!
~~~

Start earning money by creating your own Python coding business (free webinar):
Рекомендации по теме
Комментарии
Автор

in the qsort there is a small mistake: there should be [L[0]] instead of L[0], because you can't do something like: [1, 2] + 3 + [4, 5]

BTW very good explanation

mrpawcio