What is the output of relational operators

The relational operators return Boolean values, which are true or false, True or False, 0 or 1.
Yes 0 and 1 can also be Boolean values.

What is Boolean data type

Boolean data type in programming is a type that only have two output true or false.
Boolearn operators are the output of relational operators.

Let’s see a Python program that returns boolean values.

a = 4
b = 8

c = b > a
print(c) # return true

d = b == a
print(d) # return false
Facebook
Twitter
LinkedIn
Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

ABOUT ME !!
Johan William

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

RECENT POSTS

TEST