Numbers in Python
Python supports four different numerical types:
|long||(long integers [can also be represented in octal and hexadecimal])|
|float||(floating point real values)|
Numeric types of interest are the Python long and complex types. Python long integers should not be confused with C long s. Python longs have a capacity that surpasses any C long. You are limited only by the amount of (virtual) memory in your system as far as range is concerned. If you are familiar with Java, a Python long is similar to numbers of the BigInteger class type.
Complex numbers (numbers which involve the square root of -1, so called “imaginary” numbers) are not supported in many languages and perhaps are implemented only as classes in others.