Operators in Python

Operators in Python are symbols that perform operations on variables and values. They include:

  1. Arithmetic Operators: + (addition), - (subtraction), * (multiplication), / (division), % (modulus), ** (exponentiation), // (floor division).

  2. Comparison Operators: == (equal), != (not equal), > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to).

  3. Logical Operators: and, or, not.

  4. Bitwise Operators: & (AND), | (OR), ^ (XOR), ~ (NOT), << (left shift), >> (right shift).

  5. Assignment Operators: =, +=, -=, *=, /=, %=, **=, //=.

  6. Membership Operators: in, not in.

  7. Identity Operators: is, is not.

These operators enable a wide range of computations and logical operations in Python programming.