Numbers data type

suggest change

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents