xxxxxxxxxx
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))
xxxxxxxxxx
import math
a = input("what do you wnat to square root")
print(math.sqrt(a))
xxxxxxxxxx
from math import * # We import the math module
print(sqrt(16)) # We print the square root of the number 16
xxxxxxxxxx
# 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)