Why it is true instead of false? | SoloLearn: Learn to code for FREE!


Why it is true instead of false?


9/7/2019 9:37:46 AM


4 Answers

New Answer


1: (5==2+3)==(2==2) 2: (5==5)==(2==2) 3: (True)==(True) 4: True==True 5: True


Cause a = true and b = true c=true==true is also true


As b is true and a is true both are equal. So c is true.


Advanced users, please correct me if need be...i may be wrong (i probably am) but i think since both variables would result in true since 2+3==5 and 2 does ==2 when you return it, it doesnt do the mathematical function, but returns it in a boolean value.