I have two question regarding the following example in Munkres
(1)Why "if $f^{-1}(B)$ were open it would contain some interval $(-\delta,\delta)$ about 0. (2)My second question is somewhat broad, but maybe someone can shed some light on it. My intuition with why certain functions are continous comes from metric spaces. But, given a function like the one in the example below how can one see intuitively if it is continuous?
Example 2. Consider $\mathbb R^\omega$, the countably infinite product of $\mathbb R$ with itself. Recall that $$\mathbb R^\omega = \prod_{n \in \mathbb Z_+} X_n,$$ where $X_n = \mathbb R$ for each $n$. Let us define a function $f : \mathbb R \to \mathbb R^\omega$ by the equation $$f(t) = (t, t, t, \dotsc)$$; the $n$th coordinate function of $f$ is the function $f_n(t) = t$. Each of the coordinate functions $f_n : \mathbb R \to \mathbb R$ is continuous; therefore, the function $f$ is continuous if $\mathbb R^\omega$ is given the product topology. But $f$ is not continuous if $\mathbb R^\omega$ is given the box topology. Consider, for example, the basis element $$B = (-1, 1) \times (-\frac{1}{2}, \frac{1}{2}) \times (-\frac{1}{3}, \frac{1}{3}) \times \dotsb$$ for the box topology. We assert that $f^{-1}(B)$ is not open in $\mathbb R$. If $f^{-1}(B)$ were open in $\mathbb R$, it would contain some interval $(-\delta, \delta)$ about the point $0$. This would mean that $f((-\delta, \delta)) \subset B$, so that, applying $\pi_n$ to both sides of the inclusion, $$f_n(-\delta, \delta)) = (-\delta, \delta) \subset (-1/n, 1/n)$$ for all $n$, a contradiction.
$f^{-1}(B)$ contains $0$, and therefore, by virtue of being open, must contain an open interval centered at $0$.
Your second question is probably too broad and subjective for me to answer it properly. But in the case of products (and the product topology), it's essentially the same thing as with metric spaces: to check that a function into a product is continuous, we just verify that each coordinate function is continuous. (This is called the universal property of the product, by the way.) The box topology, as you can see, is quite unintuitive, but, as with most "pathological" spaces, it is not seen very frequently (in my experience).