Login
Remember
Register
Ask a Question
What is a boolean in Python?
0
votes
asked
May 17, 2020
in
Python
by
SakshiSharma
What is a boolean in Python?
#python-boolean
#boolean-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 17, 2020
by
sharadyadav1986
Boolean is one of the built-in data types in Python, it mainly contains two values, and they are true and false.
Python bool() is the method used to convert a value to a boolean value.
Syntax for bool() method: bool([a])
...