Python - Numbers
Numbers in python can be int, float or complex.
- int - integers like -56, 27 and 87543718;
- float - floats, number with decimal point like 3.14, 2.5, 654.75;
- complex - complex like 1 + 2j, 5 - 4j;
x = 43 # <- integer
y = 13.37 # <- float
z = -5 + 2j # <- complex
The float type in Python is a double-precision floating point by default.
The int type in Python is dynamic and does not have a fixed limit.