Python Programming Operators
- Arithmetic Operators
- Comparison Operators
- Assignment Operators
- Logical Operators
- Membership Operators
- Identity Operators
- Bitwise Operators
Arithmetic Operators
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus (Remainder)
** Exponent Power
// Floor division
Comparison Operators
== Equals!= Not Equal<> Not Equal> Greater than< Less than>= Greater than equals<= Less than equals
Assignment Operators
= Assign Values+= Addition-= Subtraction*= Multiplication/= Division%= Modulus (Remainder)**= Exponent Power//= Floor division
AND Returns true only if all conditions are trueOR Returns true only if any conditions are trueNOT Inverts the result
Membership Operators
IN True if Variable is a part of another variableNOT IN True if Variable is NOT a part of another variable
Identity Operators
IS True if Variable is both variables are at same memory locationIS NOT True if Variable is both variables are NOT at same memory location
Bitwise Operators
& Binary AND| Binary OR^ Binary XOR~ Binary Ones Complement<< Binary Left Shift>> Binary Right Shift