Vidyalelo
Python · Q50

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 50

Q50

What is the result of float("3.14") ?

A.
3.0
B.
"3.14"
C.
3.14
Answer
D.
"3"

Answer: Option C

Solution

Answer: Option C
Solution:
The float() function converts a string containing a number to a floating-point number.