Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Find reliable answers to your questions from a wide community of knowledgeable experts on our user-friendly Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
Sagot :
The required code written in python 3 which is a function named my_sqrt, which takes in one argument and returns the estimated square root value of the argument inputted.
def my_sqrt(a):
# initiates a function named , my_sqrt
x = 1
# assigns a starting value of 1 to the variable named x
while True:
# initiates a while loop
y = (x + a / x) / 2.0
#calculates the value of y until y equals to x
if y == x:
break
#once, the value of y equals to 1 ; break out of the loop
x = y
#assign the value of y to x
return y
# return y
a = 25
print(my_sqrt(a))
Testing the function with an argument of a = 25 ; the output is attached in the picture below.
Learn more :https://brainly.com/question/13246781?referrer=searchResults

Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.