leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

Python Boolean Types – Chapter 4

Estimated reading: 1 minute 21 views

This chapter introduces Python’s Boolean type, and also learns 6 comparison operators: equal (= =), not equal (!=), greater than (>), greater than or equal (>=), less than (<), and equal ( <=). Three Boolean operators, and, or and not, can combine Boolean values, and the result is a Boolean value. Of course, in subsequent studies, we can decide what to do with the program based on the Boolean results of one or more statements.