Are integers and floats other than 0 and 1 considered True or False in python?
>>> 1.1 == True
False
>>> if 1.1:
... print("Done!")
...
Done!
The first statement's result is False, implying that 1.1 is False, but then if 1.1
results into True. Now if I check whether 1.1 == False
, this too results into False. Am I missing something obvious?