Mathematics with Python and Ruby/Numbers< Mathematics with Python and Ruby
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.