Python Program to Find the Square Root: In this program, you’ll learn to find the square root of a number using the exponent operator and math module. you will learn about python program to find the square root.
Python Program to Find the Square Root
Source Code
# Python Program to calculate the square root
# Note: change this value for a different result
num = 8
# To take the input from the user
#num = float(input('Enter a number: '))
num_sqrt = num ** 0.5
print('The square root of %0.3f is %0.3f'%(num ,num_sqrt))
Output of Program
Python Program to Find the Square Root