1 Resposta
+ 9
According to Python docs, Boolean subsection.
"Boolean values behave like the values 0 and 1, respectively, in almost all contexts, the exception being that when converted to a string, the strings "False" or "True" are returned, respectively."
Any integer except for 0, when converted to bool, is True.