from rt import * ######################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. """ #start iwth an empty list out = [] # for each list inside of the list, compute the sum for inner_list in x: out.append(sum(inner_list)) #append it to the list. #return list return out def comb_nest(*x): return [sum(k) for k in x] def main(): print("*************** Problem 4 Tests **************") run_test(comb_nest, [6, 15, 15], [[1,2,3], [7, 8], [10,3,2]]) main()