Hello CC Forum,
I am working through the Python Course. I have stumbled across something that I am curious about. In a coding language that I am most familiar with, parentheses may be used a bit different. Please find the examples below:
def in_range(num, lower, upper): if (num >= lower) and (num <= upper): return True else: return False
def in_range(num, lower, upper): if(num >= lower and num <= upper): return True return False
My question is this: How much do parentheses matter in terms of “mixed logic” - for example: Is this ((a >= b) and (c <= d) and (e != f)) the same as (a >= b and c <= d and e != f)?
Thank you in advanced, and apologies if this has been covered on the forums before.