status= None
if 'Up' or 101 in status:
print "Inside If statement"
else:
print "Inside Else Statement"
The code flow goes inside "If" loop and prints "Inside If Statement". The status is None actually and by reading the code it should print "Inside Else Statement". I can modify the validation part and make it execute inside else statement. But i would like to know how "True" is returned for this condition
if 'Up' or 101 in status: