Do booleans need parenthesis?

Hello everyone:

I’m new of coding. The following picture is solution of 10/13:

They all use boolean operators in those pictures but sometimes the components have “()” and sometimes don’t.
Are “()” matter? or something wrong?

Sorry for the small picture because new register can only post 1 picture but I have 3.

The code in the parenthesis() is executed first followed by the outer code, but boolean operators do not necessarily need ()~