def strip_leading_zeros(p):
    "Remove the leading (in terms of high orders of x) zeros in the polynomial"
    # compute the highest nonzero element of the list
    for i in range(len(p)-1,-1,-1):
        if p[i]: break
    return p[:i+1]
Remove the leading (in terms of high orders of x) zeros in the polynomial
recipes/Python/362193_Manipulate_simple_polynomials/recipe-362193.py