19 Answers
New Answer19 Answers
New AnswerSawan True refers to 1 False refers to 0 So, True + False = 0 + 1 = 1 True + True = 1 + 1 = 2 False + False = 0 + 0 = 0
Why not? You can try this: https://code.sololearn.com/c2KM3jC9eebG/?ref=app
True refers to =1 false refers to=0 so according to your question(true+false)=(1+0)=1
Their common meaning 1 = True, white, On 0 = False, black, off In this case 1 + 0 = 1
Yes that's very true sis cause Boolean can only hold true or false which is 1 and 0 according to my understanding πhope it helps correct if I am wrong that's what your hear for so remove the dislike π
Same discussion topic yesterday (not as much in detail as this one) https://www.sololearn.com/Discuss/2399301/?ref=app
In programming languages value of True is considered as 1. whereas false is zero.therefore In Boolean algebra True + False=1+0=1.
Print(int(True))==>1 Print(int(False))==>0 If you treat True and False for int operations python converts them to integer form
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message