Learn about Find Square root of a Number Python in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.
Find Square root of a Number Python
# Program to find square root of the number # input num = float(input('Enter the number: ')) # square root sqrt = num ** 0.5 # print result print('Square root of %0.2f is %0.2f '%(num, sqrt))
Enter the number: 4
Square root of 4.00 is 2.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 : Python Program to Find Square root of a Number