Python Program to Find the Square Root of Number
This python program will demonstrate how you can find the square root of a number using exponent operator python.
Basic Program to find Square Root for Positive Number in Python
# Abundantcode Python Program to calculate the square root of a number inputNumber = 4 sqrt = inputNumber ** 0.5 print('The square root of %0.3f is %0.3f'%(inputNumber ,sqrt))
Output
The square root of 4.000 is 2.000

In this python program , we use the exponent operator ** to find the square root of the given positive number.
Leave Your Comment