+ 1
Can anyone explain me why and how this code is giving output True
print(2==2 and 3==4 or 2!= 3) https://code.sololearn.com/cvl252XzvroP/?ref=app
2 ответов
+ 4
3==4 (false) [3 is not equal to 4 hence false]
2!=3 (true) [2 is not equal to 3 hence true]
2==2 (true) [2 is equal to 2 hence true]
print(2==2 and 3==4 or 2!= 3)
print( true and false or true)
true and false = false [2==2 and 3==4]
false or true = true
+ 2
THANKS DEAR AWESOME EXPLANATION