Boolean is a data type named after George Boole (1815-1864). A Boolean variable can take only two values, True or False. The main use of this type is in logical expressions. Here are some examples:
a = True
b = 30 > 45 # b gets the value False
Boolean expressions are often used in conjunction with if statements:
x= 5
if x > 0:
print("positive")
else:
print("nonpositive")