Sunday, August 30, 2020

Write a python program for using relational operator

 x = 10

y = 12


# Output: x > y is False

print('x > y is',x>y)


# Output: x < y is True

print('x < y is',x<y)


# Output: x == y is False

print('x == y is',x==y)


# Output: x != y is True

print('x != y is',x!=y)


# Output: x >= y is False

print('x >= y is',x>=y)


# Output: x <= y is True

print('x <= y is',x<=y)

No comments:

Post a Comment