What is boolean data type ? Explain with an example.
Question :
What is boolean data type ? Explain with an example.
Comparisons in Python can only generate one of the two possible responses: True or False.
These data types are called booleans.
To illustrate, you can create several variables to store Boolean values and print the result:
boo1_1=4==2*3
boo1_2=10<2*2**3
boo1_3=8>2*4+1
print (boo1_1)
print (boo1_2)
print (boo1_3)
RUN
False
True
False