Python-Quizzes | Data Type | Question 3

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

My Personal Notes arrow_drop_up