import math
TARGET = 97
INITIAL = 10
TIMES = 6


def calcRoot(target, initial, times):
    x = initial
    for _ in range(times):
        x = (x + target / x) / 2
        print(x)
    return x


print('root of ', TARGET, 'may be', calcRoot(TARGET, INITIAL, TIMES),
    'in fact', math.sqrt(TARGET))

ef53728651cc784994c28faa287b1555cb1bfa07
<mask token>


def calcRoot(target, initial, times):
    x = initial
    for _ in range(times):
        x = (x + target / x) / 2
        print(x)
    return x


<mask token>

<mask token>


def calcRoot(target, initial, times):
    x = initial
    for _ in range(times):
        x = (x + target / x) / 2
        print(x)
    return x


print('root of ', TARGET, 'may be', calcRoot(TARGET, INITIAL, TIMES),
    'in fact', math.sqrt(TARGET))

<mask token>
TARGET = 97
INITIAL = 10
TIMES = 6


def calcRoot(target, initial, times):
    x = initial
    for _ in range(times):
        x = (x + target / x) / 2
        print(x)
    return x


print('root of ', TARGET, 'may be', calcRoot(TARGET, INITIAL, TIMES),
    'in fact', math.sqrt(TARGET))

import math
TARGET = 97
INITIAL = 10
TIMES = 6


def calcRoot(target, initial, times):
    x = initial
    for _ in range(times):
        x = (x + target / x) / 2
        print(x)
    return x


print('root of ', TARGET, 'may be', calcRoot(TARGET, INITIAL, TIMES),
    'in fact', math.sqrt(TARGET))
