Most developers still check conditions manually… 👇
But Python has a smarter one-line solution many people ignore.
No loops.
No flags.
Just clean, Pythonic code.
Are you using it yet? 🤔
Want LONG videos? Comment LONG 👇
#python#pythontips#cleanpython#provsproplusplus
Transform lists smarter.
List comprehension vs map — clean, fast, Pythonic.
Python TIP 7
Want LONG videos? Comment LONG 👇
#python#cleanpython#pythontips
@srcav@ColinTheMathmo It’s not obvious whether the (1 + 3) should be multiplying with the whole fraction:
(8 / 2) * (1 + 3)
or with just the denominator:
8 / (2 * (1 + 3))
When coding in Python i.e. @ThePSF, I use brackets wherever I think things might become unclear #cleanpython#fakemaths