expr ++ expr --
++ expr -- expr + expr - expr ~ !
* / %
+ -
<< >> >>>
< > <= >= instanceof
== !=
&
^
|
&&
||
? :
= += -= *= /= %= &= ^= |= <<= >>= >>>=
::
++
--
()
[]
.
−>
+
−
!
~
( type )
*
sizeof
new
new[]
delete
delete[]
.*
->*
/
%
<<
>>
<
<=
>
>=
==
!=
?:
=
+=
−=
*=
/=
%=
<<=
>>=
&=
^=
|=
throw
,
( type ){ list }
_Alignof
clone new
[
++ --
~ - (int) (float) (string) (array) (object) (bool) @
instanceof
+ - .
<< >>
< <= > >= <>
== != === !==
= += -= *= /= .= %= &= |= ^= <<= >>=
and
xor
or
This table lists the precedence of Python operators (from low to high).
From the lowest priority (least tightly bound) to the highest priority (most tightly bound).
This means that in an expression, Python first calculates the operators lower in the table, then those above.
lambda
not x
in,not in
is,is not
<,<=,>,>=,!=,==
<<,>>
+,-
*,/,%
+x,-x
~x
**
x.attribute
x[index]
x[index:index]
f(arguments...)
(experession,...)
[expression,...]
{key:datum,...}
'expression,...'
You recently used: