Did not understand the example given | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 2

Did not understand the example given

help

13th Nov 2017, 2:32 PM
Guru Prasad .Hegde
Guru Prasad .Hegde - avatar
5 Réponses
+ 3
Basically, you're just determining if both sides is true or not. False == False or True **False == False is true because false does equal false. So both sides is true. False == (False or True) ** This is saying that False is equal to either false or true. If it equals true, then the statement is false because false isn't true, it's false. That's why this one is false instead of true. Logic. (False == False) or True ** False == False is true, OR true. Both sides are true, so this one is true.
13th Nov 2017, 2:39 PM
AgentSmith
+ 2
What was the example given?
13th Nov 2017, 2:32 PM
AgentSmith
+ 2
tq nectos I understood thids clearly
13th Nov 2017, 2:47 PM
Guru Prasad .Hegde
Guru Prasad .Hegde - avatar
+ 2
tq netkos
13th Nov 2017, 2:47 PM
Guru Prasad .Hegde
Guru Prasad .Hegde - avatar
+ 1
>>> False == False or True True >>> False == (False or True) False >>> (False == False) or True True
13th Nov 2017, 2:35 PM
Guru Prasad .Hegde
Guru Prasad .Hegde - avatar