PYTHONTIPS
ANDTRICKS
FORNEWBIES
01/06
www.theclickreader.com
05
x = 10
y = 20
x,y = 10,20
www.theclickreader.com
www.theclickreader.com
y, x = x, y
20 10
x, y = 10, 20
print(x, y)
x = 1 < n < 20
www.theclickreader.com
True
n = 10
print(x)
x = 20 if (n == 10) else 50
www.theclickreader.com
20
n = 10
print(x)
a = "String"
www.theclickreader.com
print(a[::-1])
gnirtS
If you found this post helpful, please like it.
Head over to www.theclickreader.com to find the
world's best collection of data science resources.
Save this post, in case you want to see it again.
WAS THIS POST
USEFUL?
@theclickreader

5 Python Tips and Tricks For Newbies