Define a function $f$ on the subset $\{0\}\cup\bigcup\left\{\left(\frac1{n+1},\frac1n\right)\middle|\ n\in\mathbb N\right\}$ of $[0,1]$ as follows: $$ f(x) = \begin{cases} 1, &\text{if $n\in\mathbb N$ and $\frac1{2n+1}<x<\frac1{2n}$}; \\ -1, &\text{if $n\in\mathbb N$ and $\frac1{2n}<x<\frac1{2n-1}$}; \\ 0, &\text{if $x=0$}. \end{cases} $$
The function $f$ is constant, and therefore certainly continuous, on each of the intervals that make up its domain, including the degenerate interval $\{0\}$. But $f$ is not a continuous function; although it is continuous at every other point of its domain, it is not continuous at $0$.
In the above example, $f$ is continuous on the interval $[0,0]$, but is discontinuous at $0$. Firstly, does that make sense? Secondly, why is there a discontinuity at $0$? Is it because the intervals $(1/(n+1),1/n)$ become progressively closer to $0$, but alternate between function values of $-1$ and $1$, so there is no limit as $x\to 0$? As a counter-argument, surely we only take the open intervals $(1/(n+1),1/n)$ so that $\{0\}$ is an isolated point.