KnowledgeBoat Logo
|

Computer Science

What is the value of x, if x = math.sqrt(25.0) ?

  1. (5, -5)
  2. 5
  3. 5.0
  4. (5.0, -5.0)

Python Modules

1 Like

Answer

5.0

Reason — The math.sqrt() function returns the square root of a number. For math.sqrt(25.0), the result is 5.0, which is the positive square root of 25.0.

Answered By

1 Like


Related Questions