Part 1 Encapsulate the following Python code from Section 7.5 in a function namedmy_sqrtthat takes a as a parameter, chooses a starting value forx,… Part 1Encapsulate the following Python code from Section 7.5 in a function named my_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a. while True: y = (x + a/x) /...