What is the result of float("3.14") ?
A. 3.0
B. "3.14"
C. 3.14
D. "3"
Answer: Option C
Solution (By Examveda Team)
The float() function converts a string containing a number to a floating-point number.Related Questions on Data Types and Numeric Types
What data type is used to represent a sequence of characters in Python?
A. string
B. char
C. text
D. str
What is the purpose of the str() function in Python?
A. To convert a string to a number
B. To format strings
C. To concatenate strings
D. To convert a number to a string

Join The Discussion