Primary
bool() ⚬ᵖʸ|Documentation|1st|20251021155228-00-⌔
Built-in Functions — Python 3 documentation#bool
class
bool(object=False,/)Return a Boolean value, i.e. one of
TrueorFalse. The argument is converted using the standard truth testing procedure. If the argument is false or omitted, this returnsFalse; otherwise, it returnsTrue. Theboolclass is a subclass ofint(see Numeric Types — int, float, complex). It cannot be subclassed further. Its only instances areFalseandTrue(see Boolean Type - bool).Changed in version 3.7: The parameter is now positional-only.
Printed 2026-06-28.
Link to original
Secondary
• • •