Python3 Func Number Sqrt
# Python3.x Python3 sqrt() Function
[ Python3 Numbers](#)
* * *
## Description
The **sqrt()** method returns the square root of the number x.
* * *
## Syntax
Here is the syntax for the sqrt() method:
import math math.sqrt( x )
**Note:** sqrt() cannot be accessed directly. You need to import the math module and call this method via a static object.
* * *
## Parameters
* x -- A numeric expression.
* * *
## Return Value
Returns the square root of the number x.
* * *
## Example
The following example demonstrates the use of the sqrt() method:
## Example
#!/usr/bin/python3 import math# Import math module print("math.sqrt(100) : ", math.sqrt(100))print("math.sqrt(7) : ", math.sqrt(7))print("math.sqrt(math.pi) : ", math.sqrt(math.pi))
The output of the above example is:
math.sqrt(100) : 10.0 math.sqrt(7) : 2.6457513110645907 math.sqrt(math.pi) : 1.7724538509055159
[ Python3 Numbers](#)
YouTip