Skip to main content

Posts

Showing posts with the label Logical operators in python

Logical operators in python : Beginner Python Programming Tutorial - How to become a Python Jedi - Part 3-4

Welcome back friends to another post on TheCodingProject and we are back with the fourth chapter of the Python programming tutorial - How to become a python Jedi. This time we are going to learn about logical operators. What are Logical Operators ? Logical operators are used to compare any two values, be it two numbers , two strings or any other objects. In short these operators help us to make a decision by giving back the results of a comparison. logical operators always return either a True or a False. Different Logical operators → == Equal to !=  Not equal to <   Less than >   greater than <= Less than or equal to >= Greater than or equal to Examples of Logical operators → Let’s get into some examples to better understand the usage of comparison operators. Copy the below code and paste it in pycharm or any other editor that you have. Additionally you can also download the comparison operators.py code file...