Documentation

Function defined in library math

sqrt(x)

sqrtx

Returns the square root of the given number.

xnumber to compute the square root of

Square root of the provided number
Code
sqrt(4)
Result
2.0
Code
sqrt(2)
Result
1.4142135623730951

See also sqrt in the official documentation

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy Policy • Platform Version c2da2b72 (Thu, 01 Oct 2026 14:24:01 GMT)