1. Home
  2. Data Science
  3. Python
  4. What will be the output of True + True in Python?

Added 4 May 2024

What will be the output of True + True in Python?

  1. 0
  2. 1
  3. 2 Correct answer
  4. True

Correct answer

C. 2

14 views

MCQSEXAM

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

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs