# How do you write a piecewise function that has domain of (all real numbers) and range of y that is not equal to 2?

$y = 1$ (if $x = 2$)
$y = x$ (otherwise)