Python Program to find the square root of a number by Newton’s Method

March 22, 2022 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

To write a Python Program to find the square root of a number by Newton’s Method. 

num=int(input(“Enter a number:”))
newtonSquareroot= 0.5*((0.5*num)+num/(0.5*num)) 
print (newtonSquareroot) 

OUTPUT:

Enter a number:2

1.5

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion