Python supports five basic numerical types, three of which are integer types. : Introduction : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Introduction »

 

Python supports five basic numerical types, three of which are integer types.


int      (signed integers)
long     (long integers)
bool     (Boolean values)
float    (floating point real numbers)
complex  (complex numbers)

Here are some examples:
int      0101     84   -237     0x80 017 -680 -0X92
long     29979062458L  -84140l  0xDECADEDEADBEEFBADFEEDDEAL
bool     True          False
float    3.14159       4.2E-10      -90. 6.022e23          -1.609E-19
complex  6.23+1.5j     -1.23-875J   0+19.80665-8.31441J  -.0224+0j



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Data Type
» Introduction