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


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad