0 votes
in Python by
What is a boolean in Python?

1 Answer

0 votes
by
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])
...