Answers for "how to import square root function in python"

7

python sqrt import

import math

math.sqrt( x )
Posted by: Guest on May-14-2020
9

square root in python

def square_root(num):
  	return num**0.5
#prints out 4
print(square_root(16))
#prints out 10
print(square_root(100))
Posted by: Guest on August-21-2020

Code answers related to "how to import square root function in python"

Python Answers by Framework

Browse Popular Code Answers by Language