Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

How to calculate square root of a number in Python?

How to calculate square root of a number in Python?                                                    


1 Answer
Jayashree

using the sqrt() function defined in math module of Python library is the easiest way to calculate square root of a number

>>> import math
>>> math.sqrt(10)
3.1622776601683795
>>> math.sqrt(3)
1.7320508075688772
Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.