2 Answers
New Answerbool(x) ----> x for every float and integer numbers but not 0 would be True and for 0 would be False So if 5>2 it's true and for True it would be 1 And if 2>7 it's false and for false it would be 0 ! boolean has only two bits(0,1) and includes binary numbers which includes 0 and 1 , 0 for false and 1 for true so boolean has only two bits : 0 and 1
The values of true and false are 1 and 0 orderly. So, true + true = 1+ 1 = 2. Happy coding!