# sqrt() function in python by R4R Team

- 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)))

output-

Enter any number
81
Square root of number is 9.0
Enter another number
34
Square root of number is 5.830951894845301

-In this program, firstly we import the math library by 'import math' then we take an input of number then with the help of sqrt we find the square root of number.

##### R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!