Open In App

Python-Quizzes | Data Type | Question 3

Like Article
Like
Save
Share
Report

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
Previous
Next
Share your thoughts in the comments
Similar Reads