25 Useful Python One-Liners That You Should know
That makes python immortal
Published in
6 min readDec 5, 2020
The day I wrote my first line of code in Python, I become fascinated with the simplicity, popularity, and its famous one-liners. In the blog, I want to present some python one-liners.
1. Swapping Two Variables
# a = 4 b = 5
a,b = b,a
# print(a,b) >> 5,4