โ€œPython's if statements don't use parentheses.โ€

Read more ๐Ÿ‘‰ https://pym.dev/unnecessary-parentheses/

#Python

Unnecessary parentheses in Python

Python's ability to use parentheses for grouping can often confuse new Python users into over-using parentheses in ways that they shouldn't be used.

@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.