Parenthesis


#1

Hi was doing booleans i think it said here that important. is this right topic or something else parenthesis are important why they important also?


#2

Parentheses serve in many important roles:

  1. They delimit tuples; eg. (2, 3, 7)
  2. They delimit a parameter list; eg. def update(object, key, value):
  3. They permit grouping to dictate order of operations; eg. 2 * (length + width)

We use all of these in many different settings. If you are having trouble with a lesson where you are unable to interpret the parens, post back with your code so we can examine it.