0 / 60 seg.

¿Qué hace la siguiente función?

def sumar_hasta_n(n):
    total = 0
    for i in range(1, n + 1):
        total += i
    return total