- sqrt() function is a python function which calculate and return the square root of given number.
- it is predefined in 'math' library
Example-
number is 16
sqrt will give 4
number is 64
sqrt will give 8
number is 34
sqrt will give 5.830951894845301
program-
import math
print("Enter any number")
a=int(input())
print("Square root of number is "+str(math.sqrt(a)))
print("Enter another number")
a=int(input())
print("Square root of number is "+str(math.sqrt(a)))
Enter any number
81
Square root of number is 9.0
Enter another number
34
Square root of number is 5.830951894845301