'Returns all non-zero monomials from ``f`` in lex order.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x, y
>>> Poly(x**2 + 2*x*y**2 + x*y + 3*y, x, y).monoms()
[(2, 0), (1, 2), (1, 1), (0, 1)]
See Also
all_monoms'

def monoms(f, order=None):

    return f.rep.monoms(order=order)
