def ends(s, what):
    s = s[::-1]
    if isinstance(what, str):
        what = [what]
    for item in what:
        if s.find(item[::-1]) == 0:
            return True
    return False
Returns multivariate content and a primitive polynomial.
dataset/ETHPy150Open richrd/suplemon/suplemon/helpers.py/ends--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dmp_primitive