float() turn my number into a float?
float() is a built-in function, so Python comes by default with this ability to convert to float. To use it, we simply write a number or string inside of the parentheses, like this:
You’ll get errors if you try to use it any other way. It cannot be used as below:
10.float() # invalid float() = my_integer # invalid
To see a list of all built-in functions available in Python 2, take a look at this documentation page!