Connect with one of the following accounts


Please wait while we redirect...

Views: 136   

Following program shows you how to take a number as input and calculate the square root of given number.
In this program we get number from user and calculate square root using Math.sqrt() method

import math
number = float(input("Please enter a number:"))
result = math.sqrt(number)
print("Squre root of ", number, " is: ", result)


Please enter a number: 16
Squre root of  16.0  is:  4.0

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News