def add(p1,p2):
    "Return a new plist corresponding to the sum of the two input plists."
    if len(p1) > len(p2):
        new = [i for i in p1]
        for i in range(len(p2)): new[i] += p2[i]
    else:
        new = [i for i in p2]
        for i in range(len(p1)): new[i] += p1[i]
    return new
Return a new plist corresponding to the sum of the two input plists.
recipes/Python/362193_Manipulate_simple_polynomials/recipe-362193.py