Polynomial ring with a number (to be determined) of variables
I know that we can construct the ring of polynomials with three variables with the following command:
R.<x0,x1,x2>=PolynomialRing(ZZ)
How can I construct the ring of polynomials with $n$ varaibles, where $n$ is to be specified later?
Thanks in advance!