411 REFERENCE · Wikibooks
Mathematics with Python and Ruby/Numbers
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
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