Mega Code Archive

 
Categories / Python Tutorial / Data Type
 

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+1j 9.80665-8.31441J  -.0224+0j