Relational and Logical Operators in Python
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python
Program 1
# Relational Operator
# > < >= <= == !=
#print(50>50) # False
#print(50>=50) # True
#print(50<50) #False
#print(50<=50) # True
#print(50==50) # True
#print(50!=50) # False
#a=int(input("Enter First No"))
#b=int(input("Enter Second No"))
#print("Grater No is ",a) if(a>b) else print("Grater No is ",b)
# Logical Opeartor
# and or not
#a=int(input("Enter First No"))
#b=int(input("Enter Second No"))
#print(a>50 and b<20)
#print(a>50 or b<20)
#ch=input("Enter a character")
#if(ch=="a" or ch=="e" or ch=="i" or ch=="o" or ch=="u"):
# print("Vowel")
#else:
# print("Not A Vowel")
#per=int(input("Enter your percentage"))
#if(per>=45 and per<60):
# print("Second division")
#else:
# print("Not A Second division")
a=not(5>10)
print(a)
Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google

