######################Problem 4########################### def comb_nest(*x): """prec: x is a stargument; you pass in a comma separated list of lists. postc: returns a list containing the sum of each of the nested lists inside of x. """ out = [] for k in x: summ = sum(k) out.append(summ) return out def comb_list(*x): return [sum(k) for k in x] def main(): print("*************** Problem 4 Tests **************") print(comb_nest([1,2,3], [7, 8], [10,3,2]) == [6, 15, 15]) main()