Python - Numbers

python logo pixel art

Numbers in python can be int, float or complex.

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.