example of boolean literals in python
Answers
Answered by
0
In the above program, we use boolean literal True and False . In Python, True represents the value as 1 and False as 0 . ... The value of a is 5 because we add True which has a value of 1 with 4 . Similarly, b is 10 because we add the False having value of 0 with 10.
Similar questions