def list_sum(num_list): the_sum = 0 for i in num_list: the_sum = the_sum + i return the_sum print(list_sum([1, 3, 5, 7, 9]))