Learn about Python Program to Find Square root of a Number in the below code example. Also, refer to the comments in the code snippet to get a detailed view about what’s actually happening.
Python Program to Find Square root of a Number
The below program finds the square root of a given number.
# Python program to find square root of the number # input number num = 36 # calculate square root sqrt = num ** 0.5 # print result print('Square root of %0.2f is %0.2f '%(num, sqrt))
Square root of 36.00 is 6.00
Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.
Similar Code : Program to find Average of 10 Numbers in Python