On this page
False
Prev: Ellipsis | Up: __builtins__ | Next: None
Rel: True, None, Ellipsis, NotImplemented, copyright
Ref: docs.python.org — False
Tags: #public #python3 #builtins
Import & Availability
# Built-in (available globally without import)
from builtins import False
Overview & Signature
False -> bool
Returns True when the argument is true, False otherwise.
Usage
assert False == 0 and isinstance(False, int)
assert (False is 0) is False
Gotchas
- Subclass of
int:False == 0isTrueand{False: "a", 0: "b"}collapses into one key ({False: "b"})—usex is Falsewhen distinguishingFalsefrom0.
REPL Inspect
help(False)
Linked from
- tuts/python3/__builtins__
- tuts/python3/__builtins__/__builtins__
- tuts/python3/__builtins__/copyright
- tuts/python3/__builtins__/credits
- tuts/python3/__builtins__/Ellipsis
- tuts/python3/__builtins__/exit
- tuts/python3/__builtins__/help
- tuts/python3/__builtins__/license
- tuts/python3/__builtins__/None
- tuts/python3/__builtins__/NotImplemented
- tuts/python3/__builtins__/quit
- tuts/python3/__builtins__/True
Related notes
- tuts/python3/__builtins__/__builtins__ Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/copyright Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/Ellipsis Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/None Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/NotImplemented Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__/True Linked here; links to this page; shared tags: #builtins
- tuts/python3/__builtins__ links to this page; shared tags: #builtins
- tuts/python3/__builtins__/credits links to this page; shared tags: #builtins
- tuts/python3/__builtins__/exit links to this page; shared tags: #builtins
- tuts/python3/__builtins__/help links to this page; shared tags: #builtins