False or True | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

False or True

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

29th Jun 2018, 10:27 AM
Ho Ho Yin
Ho Ho Yin - avatar
2 Answers
+ 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
29th Jun 2018, 10:38 AM
Matthias
Matthias - avatar
+ 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.
29th Jun 2018, 10:40 AM
TurtleShell
TurtleShell - avatar