Last modified on 20 March 2012, at 21:50
The Python language is weakly typed, which means that it determines the type of a variable at the moment of first allocation (its instantiation). Python possesses five categories of numbers:
- int for whole numbers;
- long for large whole numbers;
- fraction for fractions (divisions of whole numbers);
- decimal and float for real numbers (in reality, decimal numbers);
- complex for complex numbers.