Python Program to Find the Square Root of Number

This content was proof-read by Grammarly. You can Try Grammary for FREE

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


Are you a .NET Developer planning to integrate GraphQL for .NET in your Application? Check out this book BUY & DOWNLOAD GRAPHQL.NET COOKBOOK

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.

%d bloggers like this: