Let $\{X_{\alpha}\}_{\alpha\in A}$ be a family of topological spaces. The product topology on $X=\prod_{\alpha\in A}X_{\alpha}$ is the weak topology generated by the coordinate maps $\pi^{}_{\alpha}:X\to X_\alpha$. The following is an exercise about open sets in $X$ endowed with the product topology:
If $A$ is infinite, a product of nonempty open sets $\prod_{\alpha\in A}U_{\alpha}$ (where $U_\alpha$ is open in $X_\alpha$) is open in $X$ iff $U_\alpha=X_\alpha$ for all but finitely many $\alpha$.
Observing that the sets of the form $\bigcap_1^n \pi^{-1}_{\alpha_j}(U_{\alpha_j})$ form a base for the product topology, I can show the following direction:
If the open sets $U_\alpha=X_\alpha$ for all but finitely many $\alpha$, then the product of nonempty open sets $\prod_{\alpha\in A}U_{\alpha}$is open in $X$.
Could anyone suggest an idea for the other direction?