Lihua Yao4,217 Points
Why the data type of Boolean is int?
list = ["a", 1, 2, 3, False, [1, 2, 3]]
Steven Parker172,377 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: