'Returns all non-zero coefficients from ``f`` in lex order.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x
>>> Poly(x**3 + 2*x + 3, x).coeffs()
[1, 2, 3]
See Also
all_coeffs
coeff_monomial
nth'

def coeffs(f, order=None):

    return [f.rep.dom.to_sympy(c) for c in f.rep.coeffs(order=order)]
