Python program to perform the relational operations
kw.py
print("__________________________________________")print("Program for the relational operations")print("__________________________________________")a=b=3print("Value of a |",a)print("Value of b |",b)print("__________________________________________")c=(a==b)print("3==3 |",c)c=(a!=b)print("3!=3 |",c)c=(a<b)print("3<3 |",c)c=(a>b)print("3>3 |",c)c=(a<=b)print("3<=3 |",c)c=(a>=b)print("3>=3 |",c)print("__________________________________________")
Output
kodingwindow@kw:~$ python3 kw.py
__________________________________________
Program for the relational operations
__________________________________________
Value of a | 3
Value of b | 3
__________________________________________
3==3 | True
3!=3 | False
3<3 | False
3>3 | False
3<=3 | True
3>=3 | True
__________________________________________
Dear User, Thank you for visitng Kodingwindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, you need to install apk manually. Would you like to get the app? Minimum Requirement(s): Android 10