Skip to content

How to do a square root in Python?

from math import * # We import the math module
print(sqrt(16)) # We print the square root of the number 16
See also  Python code snippet - How to time a script?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.