Code :
print(False+False)
Solution and Explanation :
In Python, False is internally represented as the integer value 0. Therefore, when you use the + operator to add two False values, it's equivalent to adding 0 + 0, which results in 0.
Here's the code and its output:
print(False + False)
Output:
0
So, False + False evaluates to 0 in Python.
0 Comments:
Post a Comment