Create a program in Python that adds a given list of numbers.
[2, 5, 9]
def add_list(list_of_numbers):
    sum = 0
    for i in list_of_numbers:
        sum += i
    return sum

list = [2, 5, 9]
result = add_list(list)
print(result)