While studying the demonstration of the product formula of the Jacobi theta function, I encountered the next equality which I don'tunderstand:

(1-q^{2n-1})(1-q^{2n})=(1-q^n), where q=e^{\pi i\tau}, Im(\tau)>0.

I will apreciate any help.