def sum_list(): lst = [1, 2, 3, 4, 5, 6, 7, 8, 9] for _ in range(0, 1): print(sum(lst)) sum_list()