About float type: for someone coming from another language, might be worth mentioning it is double precision.
For reference: https://python-reference.readthedocs.io/en/latest/docs/float/
Python does not support single-precision floating point numbers;
Floating point numbers are usually implemented using double in C.