Use of Relational operators

#Write a program to demonstrate the use of Relational operators

x =int(input("Enter Value for X:"))
y=int(input("Enter Value for Y:"))


# Use of is less than

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

 

# Use of is less than or equal to

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

 

# Use of is greater than

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

 

# Use of is greater than or equal to

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

 

# Use of is equal to

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

 

# Use of is not equal

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

 output :



Popular posts from this blog

Python Programming Practical no 1

Python Progrmming Practical No 3