โPython's if statements don't use parentheses.โ
Read more ๐ https://pym.dev/unnecessary-parentheses/
โPython's if statements don't use parentheses.โ
Read more ๐ https://pym.dev/unnecessary-parentheses/
@treyhunner It's one of the nicities of Python that I really liked when I started learning it all the way back in the late 1.x / early 2.x days.
I only use parentheses for logical grouping and for tuples that are being passed in as parameter values as a visual reminder that the parameter takes a tuple.