Create an $f(x)$ that is continuous only at $x = 0$.
In other words, $f(x)$ is discontinuous at every other point. Maybe they are scattered points. However, for $f(x)$ to be continuous at $x = 0$, its limit as $x$ approaches zero must be $f(0)$. But even then, I cannot imagine such a function.
Here is another approach. Consider the function $f(x) = (cx)^n$. If $c$ and $n$ are very large, it acts like two vertical asymptotes squeezing from the sides very near $x = 0$, so that $f(x)$ is continuous only at $x = 0$.
Is my thinking correct? Are there any other ways that we can create such a function?