πŸ“Š Python
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

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
83%
Success Rate