Akhil Narayanan Nair home

Python - Boolean Expression

================

x=5

y=6

if(x!=y):

print('{} is not equal to {}'.format(x,y))

else:

print('{} is equal to {}'.format(x,y))

if(x>y):

print('{} is greater than {}'.format(x,y))

else:

print('{} is not greater than {}'.format(x,y))

if(x<y):

print('{} is less than {}'.format(x,y))

else:

print('{} is not less than {}'.format(x,y))

if(x>=y):

print('{} is greater than or equal to {}'.format(x,y))

else:

print('{} is not greater than or equal to {}'.format(x,y))

if(x<=y):

print('{} is less than or equal to {}'.format(x,y))

else:

print('{} is not not than or equal to {}'.format(x,y))