< 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.
- Whole numbers
- Fractions
- Real numbers
- Complex numbers
- Quaternions
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.