print( 1==1 or 2==3) True: Really? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

print( 1==1 or 2==3) True: Really?

Is this really true statement?

5th Oct 2020, 9:27 PM
Amin Kanji
Amin Kanji - avatar
4 Antworten
+ 6
1==1 is true and or operator doesn't care about evaluating other side of it
5th Oct 2020, 9:46 PM
Abhay
Abhay - avatar
+ 3
This is true because even though 2 is not equal to 3, 1 is equal to 1 and there is a OR statement, so this is corret.
5th Oct 2020, 9:39 PM
:DD
:DD - avatar
0
Why not true in your thought? Edit : !!! 1==1 True, and 2==3 False, so finally True Truth table for or opearation : True or True = True True or False = True False or True = True False or False = False
5th Oct 2020, 9:33 PM
Jayakrishna 🇮🇳
- 2
5th Oct 2020, 9:27 PM
Amin Kanji
Amin Kanji - avatar