Small improvements in monomials.py Replaced redundant `yield` statement with `return`. Added return statement when returning a single element making the generator terminating a bit faster.
Small improvements in monomials.py
Replaced redundant `yield` statement with `return`.
Added return statement when returning a single element
making the generator terminating a bit faster.

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy