Appendix C. Python Operator Summary

Table C.1 represents the complete set of Python operators and to which standard types they apply. The operators are sorted from highest-to-lowest precedence, with those sharing the same shaded group having the same priority.

Table C.1. Python Operators († - unary)
OperatorIntlongfloatcomplexstringlisttupledictionary
[]     
[:]     
**    
+†    
-†    
~†      
* 
/    
%   
+ 
-    
<<      
>>      
&      
^      
|      
<
>
<=
>=
==
!=
<>
is
is not
in     
not in     
not†
and
or

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset