What will be the output of True + True in Python?
-
A
0
-
B
1
-
C
2
Correct answer
-
D
True
14 views
Explanation
In Python, True is equal to 1, so True + True evaluates to the integer 2.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ