0

False == (False or True)

I am not sure what does this statement mean? anyone can explain it, I really appreciate your help.

14th Oct 2017, 8:00 PM
Norman Chen
Norman Chen - avatar
4 Answers
+ 5
Im not familiar with Python, but I think it returns false because (False or True) is True and False is not equal to True, so False == True is false. This is because the OR-Operator returns True if at least one expression is True.
14th Oct 2017, 8:19 PM
Shadow
Shadow - avatar
0
False == (False or True) No output. This operator (==) means "If was True" Example: 2 == 3 False Reading.. If was True that 2 is equal 3 ... ~~In your sentence ~~ False == (True or False) If was True that False is equal True or If was True that False is equal False than..) Let's read carefully. The "Or" condition means one or other. But we need remember that Python are criticizing a sentence. It will criticize the value (True or False) of the sentece. Than.. Reading the first condition If False = False ( This sentence is True) If False = True ( This sentence is False) If one of this two was true, than Python will print True. Let's try: print ( False == False or True) >>> True Have I helped you ?
15th Oct 2017, 1:25 AM
ā–²TopGun ā–²
ā–²TopGun ā–² - avatar
0
Frist (False or True)= True Than False == True is False
24th Oct 2017, 1:35 AM
äøä¼šå–名ēš„ęœØ子
äøä¼šå–名ēš„ęœØ子 - avatar
0
No, I think his problem is because the original sentence haven't output. But he needs use "print" in Pyhton's SoloLearn. print (False == False or True) output (valid): True
24th Oct 2017, 3:03 AM
ā–²TopGun ā–²
ā–²TopGun ā–² - avatar