Python Language Python Data Types Numbers data type


Example

Numbers have four types in Python. Int, float, complex, and long.

int_num = 10    #int value
float_num = 10.2    #float value
complex_num = 3.14j    #complex value
long_num = 1234567L    #long value