First, I found two other posts of people who asked this question.
How to show that the set of points of continuity is a $G_{\delta}$
Set of points of continuity are $G_{\delta}$
However, because of the way that I'm attempting to solve it, I didn't find these threads to be helpful.
The question is to show that
Let $f$ be a real valued function on $\mathbb{R}$, the set of points at which $f$ is continuous is a $G_\delta$ set.
Note that a $G_{\delta}$ set is a the intersection of a countable collection of open sets.
My solution idea:
We know that for a set $E$ of real numbers, $f$ is continuous on $E$ if and only if for each open set $O$ in the range of the function, $f^{-1}(O) = E \cap U$ where $U$ is an open set$.
So denote the set of points at which $f$ is continuous by $E$. Then for each open set $O_i$ in the range of $f$, we have $f^{-1}(O_i) = E \cap U_i$.
Now maybe I could use the fact that the $O_i$ in the range must be countable?
I feel like I'm close, but I'm stuck at this point. Can anyone point me in the right direction?
Thanks.