PyDocs

Nav

Python Runtime Services

bool

  • bool(object=False, /)
Returns True when the argument is true, False otherwise.
The builtins True and False are the only two instances of the class bool.
The class bool is a subclass of the class int, and cannot be subclassed.
Changed in 3.7
  • 3.7: The parameter is now positional-only.
0 Examples
No examples for builtins/bool.
See Also
No see-alsos for builtins/bool
0 Notes
No notes for bool