I define a function $f:\mathbb{R}\to\mathbb{R}$ as follows:
$f(x)=0$ for $x\le 0$. $f(x)=1$ for $x\ge1$.
$f(x)=\dfrac12$ for $x\in\left[\dfrac13,\dfrac23\right]$.
$f(x)=\dfrac14$ for $x\in\left[\dfrac19,\dfrac29\right]$, $f(x)=\dfrac34$ for $x\in\left[\dfrac79,\dfrac89\right]$.
and so on.
So this function has been defined on $\mathbb{R}$, except for the Cantor set. How can we fill in the function on the Cantor set, so that we get a continuous function?