I'm looking for classes of spaces $X$ having the property that for each $x_0 \in X$ there is a continuous map $f:X \to \mathbb R$ such that $Z(f) := f^{-1}(0) = \lbrace x_0\rbrace$. Examples are:
- Metric spaces with $f(x) = d(x,x_0)$
- Discrete spaces
Do you know of other classes of spaces with this property ?