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


Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad