How to identity False value in Python
constants defined to be false:
None
andFalse
.zero of any numeric type:
0
,0.0
,0j
,Decimal(0)
,Fraction(0, 1)
empty sequences and collections:
''
,()
,[]
,{}
,set()
,range(0)
constants defined to be false: None
and False
.
zero of any numeric type: 0
, 0.0
, 0j
, Decimal(0)
, Fraction(0, 1)
empty sequences and collections: ''
, ()
, []
, {}
, set()
, range(0)
Comments
Post a Comment