def sqrtapp(x,N): if (N == 1): return N else: ret = sqrtapp(x,N-1) return 0.5*(ret+x/ret) print(sqrtapp(2,10))