Which of the following is a valid way to assign a boolean value in Python?
-
A
true
-
B
FALSE
-
C
True
Correct answer
-
D
0
17 views
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