Escolar Documentos
Profissional Documentos
Cultura Documentos
so
the
python
and
Camel-casing
assignment operator
==
in
!=
not-equal-to operator
<>
comment
operator
in
octothorpe/pound/hash/mesh
python;
called
as
or
docstrings. Used for multiple-line
comment in python scripts. Differs from using #. Appears
in the output. Useful, especially, in modules.
#!
Called shebang.
script.
Used
as
the
first
character
in
python
[]
{}
result={
'a':lambda x :x*5,
'b':lambda x:x+7,
'c':lambda x:x-2}
result['b'](10)
&
bitwise Operators
&
bit-wise OR operator
>>
<<
**
/
//
%
Eg: 15>>1
7
Explanation: 15-1111 (in 8421 convention)
15>>1 means shifting one position left.
It becomes 0111 i.e., 7
right shift operator
power of operator
division operator
floor division operator (only in python3)
modulo operator. Returns remainder of a division.