Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Which of the following is a Boolean in Python?

>>> type(True)
<class 'bool'>
>>> type(true)
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
NameError: name 'true' is not defined
Source by openbookproject.net #
 
PREVIOUS NEXT
Tagged: #Which #Boolean
ADD COMMENT
Topic
Name
9+3 =