Let $f:\mathbb R^2\rightarrow \mathbb R$ be defined by $f(x,y)=1$ if $xy=0$ and $f(x,y)=2$ otherwise. Then find the set of points where $f$ is continuous.
I think $f$ is continuous on $\{(x,y):xy\neq 0\}$. Let $(x,y)\in \mathbb R^2$ be such that $xy\neq 0$. Then there is a neighbourhood of $(x,y)$ which does not intersect with x axis or y axis. So in that neighborhood the value of $f$ is 2 and hence $f$ is continuous at $(x,y)$. Am I correct?