+ 2
Guys...just use parenthesis instead of worrying about all these operator-precedences xD
5 odpowiedzi
+ 9
But you stil have to know it, because you can have to read code written by other coders who did not use parentheses. And it is known that we usually spend more time reading code than writing it. So we should care to write code which is more "readable" (not about "how to write easier, faster even if it is harder to read later").
+ 2
You are right, that would be easier / clearer.
However I think one can read the code faster without the parentheses and with the operator precedence in mind.
0
It would be easier
0
I find parentheses way easier.
0
Well I am beginner in python but all my code must be 100% pep8.... No parenthesis allowed then (only when necessary)