Recall that in the notation , the codomain of the function is .
On the other hand, the range of is the subset of the codomain that contains all values that are mapped to by at least one element .

If we remove the element 3 from the domain, then 3 will be removed from the range as well. But the codomain stays the same.