The math.sqrt()
function calculates the square root of a number.
math.sqrt(x)
copy
Where, x
is number for which the square root should be calculated.
The function returns square root of the given number as a a floating point value.
If the given number is less than 0, a ValueError
is raised.