Develop a python program for the following task
Write a function to calculate the sum of the first n natural numbers.
def sum_n(n):
    result = (n * (n+1)) / 2
    return result

n = 10

sum = sum_n(n)
print(sum)