why false ==false or true is true can someone explains to me please 😔 | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

why false ==false or true is true can someone explains to me please 😔

5th Oct 2016, 6:21 AM
amir mahir
amir mahir - avatar
3 Réponses
+ 8
when there is an OR, provided anything is True, the whole statement is true. To be specific to your question False == False, that is True. Then we will be talking of True OR True giving us True. Summary True OR True = True True OR False = True False OR True = True False OR False = False True AND True = True True AND False = False False AND True = False False AND False = False you can now study about Exclusive OR (XOR). I hope that helped.
5th Oct 2016, 6:55 AM
Cornel
Cornel - avatar
+ 5
because the first operator in this case is not the first one that you see. So its not == , but is OR. think of it like: false == (false OR true)
5th Oct 2016, 8:33 PM
Klodian Lula
Klodian Lula - avatar
0
thanks guys its helped
5th Oct 2016, 8:41 PM
amir mahir
amir mahir - avatar