def dup_shift(f, a, K):
    f, n = list(f), len(f) - 1

    for i in range(n, 0, -1):
        for j in range(0, i):
            f[j + 1] += a*f[j]

    return f
Adds comment prefixes to new lines in comments
dataset/ETHPy150Open sympy/sympy/sympy/polys/densetools.py/dup_shift--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/util.py/prefix_as_comment