How does python evaluate this with both an 'and' and an 'or'?
lambda x: isinstance(x[1], Decimal) and (str(x[0]), str(x[1])) or (str(x[0]), x[1])
How does python evaluate this with both an 'and' and an 'or'?
lambda x: isinstance(x[1], Decimal) and (str(x[0]), str(x[1])) or (str(x[0]), x[1])
According to the documentation, the precedence for boolean operators is:
Link: Operator Precedence