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.
- Assignment Operators.
- Comparison Operators.
- Identity Operators.
- Arithmetic Operators.
- Logical Operators.
- Bitwise Operators.
- 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)