Python Operators:
Operators are the most important
aspect of programming languages. All you need to know about operators in
programming languages. We have designed this blog beautiful so there should not
be any problem but if we are missing something then please let us known in the
comments. important python operators are:
1. Arithmetic operators
2. Comparison operators3. Assignment operators
4. Logical operators
5. Bitwise operators
6. Membership operators
7. Identity operators
Arithmetic Opera
- + addition
- - subtraction
- / divide
- * multiplication
- % reminder
- ** exponent
- // floor division
Comparison Operators:
- == equal
to
- != not
equal to
- <= less
than equal to
- >= greater
than equal to
- > greater
than
- < less
than
- Assignment Operators:
- = assign
- += add
and assign
- -= subtract
and assign
- *= multiply
and assign
- %= remainder
and assign
- //= divide
and assign
- **= power
and assign
Bitwise Operators:
- & binary and
- | binary
or
- ^ binary
xor
- ~ negation
- << left
shift
- >> right
shift
Logical
Operators:
- and
- or
- not
Membership
Operators:
- in
- not in
Identity
Operators:
- is
- is not
No comments:
Post a Comment