WeCodeAcademy
❮ str()list() ❯

bool()

Converts a value to True or False.

Group: Built-in

Syntax

bool(x)

Example

Examplepython
Open in editor »

← All of Python Reference