Are parenthesis a syle choice?

Why are the terms in the prewritten code bracketed (e.g. “(gpa >= 2.0)”)? The code seems to work even without brackets. Is this a style thing?