def f(x): y = 0 for i in range(0, x): y += i return y