Senior
What do you get if you do 4 + True?
sobes.tech AI
Answer from AI
In Python, the expression 4 + True will result in 5. This is because boolean values True and False are subclasses of integers, where True is equivalent to 1, and False is 0.
Example:
result = 4 + True # result will be 5
print(result) # Outputs: 5