Operator
|
Description
|
**
|
Exponentiation(raise to the power)
|
~ + -
|
C complement, unary plus and minus
(method names for the last two are +@ and -@)
|
*/ % //
|
Multiply, divide, modulus and floor
division.
|
+ -
|
Addition and subtraction
|
>> <<
|
Right and left bitwise shift.
|
&
|
Bitwise ‘AND’
|
^ |
|
Bitwise exclusive ‘OR’ and regular
‘OR’
|
<= <> >=
|
Comparison operators
|
<> == !=
|
Equality operators
|
= %= /= //= -= += *= **=
|
Assignment operators
|
Is is not
|
Identity operators
|
In not in
|
Membership operators
|
Not or and
|
Logical operators
|
Thursday, 19 July 2012
Python Operators Precedence:
Labels:
Python
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment