a = 0 if a == False: print a
in php I can say:
$a = 0; if $a === false { echo $a; }
The triple === in php checks the value inside the same type, thereby making the integer 0 not read as a boolean value False How can I do this in python? I would like to distinguish 0 from an integer and False boolean in a simple if statement.
source share