0

print( False == (False or True )). Why is the output of it false?

print(False == False or True) 》True print( False == (False or True )) 》False how? print((False == False) ) 》True why is the output of second statement Flase? Please explain it to me if you know.

17th Dec 2016, 4:22 PM
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎ - avatar
3 Antworten
+ 8
because false or true is true nd false is not equal to true(==) hence the solution will be false
17th Dec 2016, 4:41 PM
Nischay Soni
Nischay Soni - avatar
+ 1
False or True returns True, because one of them is True. Then False == True returns False, because False is not the same as True.
17th Dec 2016, 4:42 PM
Sheemin
Sheemin - avatar
+ 1
oh, now i get it. by the way thank you 😃 #Soni and whoever you are. i can't write your name here 😂
18th Dec 2016, 12:07 AM
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎ - avatar