def sum(x):
    if x == 1:
        return 1
    else:
        return x + sum(x - 1)


print(sum(100))


def sum_iter(y):
    sum = 0
    for i in range(1, y + 1):
        sum += i
    return sum


print(sum_iter(100))

82ea369a4bb373d4e8f9fe8dd59419fb1373f336
<mask token>

def sum(x):
    if x == 1:
        return 1
    else:
        return x + sum(x - 1)


<mask token>

def sum(x):
    if x == 1:
        return 1
    else:
        return x + sum(x - 1)


<mask token>


def sum_iter(y):
    sum = 0
    for i in range(1, y + 1):
        sum += i
    return sum


<mask token>

def sum(x):
    if x == 1:
        return 1
    else:
        return x + sum(x - 1)


print(sum(100))


def sum_iter(y):
    sum = 0
    for i in range(1, y + 1):
        sum += i
    return sum


print(sum_iter(100))
