Q. Which of the following functions converts a “string” to a “float”?
β
Correct Answer: (B)
float(x)
Explanation: float(x) – Convert x to floating point number.