T

Tanmay • 2.43K Points
Master

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])
  • Correct Answer - Option(B)
  • Views: 124
  • Filed under category Python

Explanation by: Tanmay
float(x) – Convert x to floating point number.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics