Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python 0 evaluates to False

In Python, bool is a subclass of int, and False has the value 0; 
even if values weren't implicitly cast to bool in an if statement 
(which they are), False == 0 is true.
 
PREVIOUS NEXT
Tagged: #Python #evaluates #False
ADD COMMENT
Topic
Name
7+8 =