False or True | SoloLearn: Learn to code for FREE!

+1

False or True

why >>>False or True True ?? it’s my only question on this topic

6/29/2018 10:27:40 AM

Ho Ho Yin

2 Answers

New Answer

+6

because if you apply the logic operator "or" it gives true if any of both or both statements are true In general: 1 1 -> 1 1 0 -> 1 0 1 -> 1 0 0 -> 0 where 1 is True and 0 is False

+1

From the 3 arrows (>>>) I think you used the Python interactive interpreter. The OR operation returns true if 1st, 2nd or both booleans are true. False or True, the 2nd boolean is true so it will return true.