Please advise how below IF statement evaluating, details not available on the course content.
if(5,10): print(‘hello’)
Not sure, what condition it is trying to verify
Please advise how below IF statement evaluating, details not available on the course content.
if(5,10): print(‘hello’)
Not sure, what condition it is trying to verify
Where did you find this example?
the comma operator (represented by the token ,
) is a binary operator that evaluates its first operand and discards the result, and then evaluates the second operand and returns this value (and type).
Got it. Thank you for the explanation.
You’re most welcome