Open In App
Related Articles

Python-Quizzes | Data Type | Question 3

Improve Article
Save Article
Like Article

Which of the following function convert a string to a float in python?
(A) int(x [,base])
(B) long(x [,base] )
(C) float(x)
(D) str(x)

Answer: (C)

Explanation: float(x) − Converts x to a floating-point number

Quiz of this Question
Please comment below if you find anything wrong in the above post

Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads