def SquareRoot (N):
Guess = N / 2.0
Quotient = N / Guess
NewGuess = (Guess + Quotient) / 2.0
while (abs(Guess - NewGuess) > 1.0e-15):
print (Guess, NewGuess)
Guess = NewGuess
Quotient = N / Guess
NewGuess = (Guess + Quotient) / 2.0
return NewGuess
Frog = float(input("Enter a number to square root --- "))
Answer = SquareRoot(SquareRoot(Frog) + 1)
print (Answer)