Python Operators Intro Part 1
Operators are used to do action or process on variables and operands. The operator usually represents as symbol for doing an action. Python has different type of operators like Arithmetic, Assignment, Relational / Comparison , Logical, Bitwise, Identity and Membership operators. Every operators are using to do different kind of operations.
In this tutorial we will learn about Logical Operators, Bitwise Operators, Identity Operators, Membership Operators and Ternary operator with an exmple and an output. We will learn one by one.
Python Type of Operators
Python operators are classifying the following categories. We will learn one by one
- Arithmetic Operators
- Relational Operators
- Assignment Operators
- Logical Operators
- Bitwise Operators
- Identity Operators
- Membership Operators
Python Arithmetic Operators
Python Arithmetic operators are used to perform the mathematical operations.
Python Relational Operators
Python Relational operators are used to compare the values between two operand. it returns either true or false.
Python Assignment Operators
Python Assignment Operators are used to assign the values to the variables.