Skip to content

How to print the square root of a number 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 sort columns alphabetically in pandas?

Leave a Reply

Your email address will not be published. Required fields are marked *

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