Lihua Yao4,218 Points
Why the data type of Boolean is int?
list = ["a", 1, 2, 3, False, [1, 2, 3]]
Steven Parker201,292 Points
This is merely a historical artifact of the linguistic evolution. It prevents code written from before the bool type was added from breaking.
If bool is a possibility, just test for it first: