transform string in float python code example
Example 1: convert string to float python
>>> number='1.1'
>>> float(number)
1.1
Example 2: convert string to float python
string = "88.88"
print(float(string))
# output
# 88.88
>>> number='1.1'
>>> float(number)
1.1
string = "88.88"
print(float(string))
# output
# 88.88