Python operator precedence (priority)
LOWEST
lambda
if
–else
or
and
not x
in
,not in
,is
,is not
,<
,<=
,>
,>=
,!=
,==
|
^
&
<<
,>>
+
,-
*
,/
,//
,%
+x
,-x
,~x
**
- x[index], x[index:index], x(arguments...), x.attribute
- (expressions...), [expressions...], {key: value...}, {expressions...}
HIGHEST
On same line priority is equel so such operators executed from left
to right
.