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?


I came here to ask the same.

yes, its just a style choice there
The ( and ) are required in if-statements in other programming languages.