Python float() built-in function
From the Python 3 documentation
Return a floating point number constructed from a number or string x.
Examples
>>> float('10')
# 10.0
>>> float(10)
# 10.0
From the Python 3 documentation
Return a floating point number constructed from a number or string x.
>>> float('10')
# 10.0
>>> float(10)
# 10.0
Subscribe to pythoncheatsheet.org
Join 10.900+ Python developers in a two times a month and bullshit free publication , full of interesting, relevant links.