, Python . False == 0 , bool int, .
, ===, , :
lst = [....]
testvalue = False
if any(testvalue == elem and type(testvalue) is type(elem) for elem in lst):
, , .
, . in , in , any() , True, .
, float. 0.0 == 0 , , , . , Decimal():
>>> 0j == 0 == 0.0 == Decimal('0')
True
bool - , 0 1.
, - hinting ; , , , .