variables
are Object references
<note important>
function
subroutine executed independandly
method
function bound to an instance of an object
operator
function bound or not to instance, do not use parenthesis and part
</note>
==
, <
… ⇒ Value comparisonis
operator ⇒ identity comparison (identify of an object can be retriece by object.id()
)None
special null object (singleton)
<note tip>
Python keywords
and class elif finally if lambda print while as continue else for import not raise with
assert def except from in or return yield break del exec global is pass try
</note>
bool
: boolean with two values False
and True
False
is evaluated to 0 , True
is evaluted to 1int
: classical machine related integerint
exceeding the int
range is converted into long'
*
long : integer which size is the machine memory
* use suffix
L to signify a
long value
* numbers are by default written in base 10
* Python assume that any value with prefix
0x is written in hexadecimal, octol for value starting with 0
* classical operators
+ - / % += -= /= %= , '**' for power , '' for truncated division
* '
is