Skip to content
Related Articles

Related Articles

Improve Article

Python-Quizzes | Data Type | Question 3

  • Last Updated : 28 Jun, 2021

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
Recommended Articles
Page :