python adicione 1 a 100

def f(n):
    return sum(range(1,n+1))
Mamad