DEV Community

Cover image for DATA WORLD_WITH NITIN Day - 3
Nitin-bhatt46
Nitin-bhatt46

Posted on

DATA WORLD_WITH NITIN Day - 3

Python Operators

An operator serves as the keywords/symbols that are used perform any operation on one or more variable/values, etc.

Types of operators in Python.

  1. Assignment Operators.
  2. Comparison Operators.
  3. Identity Operators.
  4. Arithmetic Operators.
  5. Logical Operators.
  6. Bitwise Operators.
  7. Membership Operators.

1. Assignment Operators :-

Assignment operators are those operators
that will help in executing the assignment of
some value to the operands.


Assignment Operators with Description


"=" Equals


"+=" ( X+=6 is same as X=X+6 )


"-=" ( X-=6 is same as X=X-6 )


"*=" ( X*=6 is same as X=X*6 )


"/=" ( X/=6 is same as X=X/6 )


"%=" ( X%=6 is same as X=X%6 )


"//=" ( X//=6 is same as X=X//6 )

Top comments (0)