# Revision history [back]

### How do I retrieve the variables that appear in a polynomial?

Hello, I'd like to know I can retrieve the list of variables that appear in $g$ in the following example.

A.<x,y> = InfinitePolynomialRing(QQ)
g=x_[0]+x_[1]+y_[0]