import math
toSquare = 300
squared = math.sqrt(toSquare)
import math
a = input("what do you wnat to square root")
print(math.sqrt(a))
from math import * # We import the math module
print(sqrt(16)) # We print the square root of the number 16
a = int(input("enter a real number: "))
sqrt = a**(1/2)
print("the square root of ",a ,"is",sqrt)
import math
x = 16
root = math.sqrt(x)
print(root) // 4
x = 9
y = x ** 0.5
def square_root(num):
return num**0.5
#prints out 4
print(square_root(16))
#prints out 10
print(square_root(100))
import math
answer = math.sqrt(16)
import math
print(math.sqrt(589485))
# How to get the square root of a number in Python:
# First we import the math module
import math
# Then we get the square root of a number using the sqrt() method
print(math.sqrt(9))
# Another way is to do it by doing this calculation: 'number ** 0.5'
print(9 ** 0.5)
import math
whose_square = int(input("Of which number to find square root:- "))
print("The square root of ", whose_square,"is",math.sqrt(whose_square))
import numpy
numpy.sqrt(16) # output: 4.0
# python program to find the square root of the number
num = int(input("enter a number:"))
num_sqrt = num ** 0.5
print("the sqare root of {0} is {1}".format(num, num_sqrt))