2) b. Boolean

The name of this type speaks for itself. Boolean variables can be either True or False. They are mainly used for logical operations which we shall cover in the conditional statements chapter.




You can create logical expressions by using a series of boolean variables that are combined using and or or. You can also use not before the variable, and use brackets as well to create more complex rules. Here is an example: