Boolean « Data Type « Python






1.Boolean operation in ifBoolean operation in if
2.In Python any non-zero integer value is true; zero is false.In Python any non-zero integer value is true; zero is false.
3.Anything with a non-zero length is true, empty sequences are falseAnything with a non-zero length is true, empty sequences are false