Let \begin{equation} f(x) \triangleq \begin{cases} 1, & x \in \mathbb{Q} \\ -1, & x \notin \mathbb{Q} \end{cases} \end{equation}
where $\mathbb{Q}$ denotes the set of rational numbers. The function is definitely discontinuous at every point of the real line( if I am not wrong).
But I need help regarding piecewise concept of continuity
Thanks

Hint:
By definition:
So if a function is discontinuous at any real number.......