1. Home
  2. Data Science
  3. Python
  4. Which of the following is a valid way to assign a boolean…

Added 4 May 2024

Which of the following is a valid way to assign a boolean value in Python?

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

Correct answer

C. True

17 views

MCQSEXAM

Explanation

In Python, boolean literals are True and False, both starting with an uppercase letter.

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