Q. Which of the following functions converts a “string” to a “float”?

  • (A) int(x [,base])
  • (B) float(x)
  • (C) str(x)
  • (D) long(x [,base])
πŸ’¬ Discuss
βœ… Correct Answer: (B) float(x)
Explanation: float(x) – Convert x to floating point number.
Explanation by: Tanmay
float(x) – Convert x to floating point number.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
96%
Success Rate