Python Program to find the square root of a number


In this program, You will learn how to find the square root of a number in Python.


import math

math.sqrt(x)

Example: How to find the square root of a number in Python.

import math

x = float(input("Enter a number:"))

print("Square Root is:", math.sqrt(x))

Output:

Enter a number:16
Square Root is: 4.0