Let (M,d) be a metric space. $A \subseteq M$ and closed. Further let $U \subseteq M$ a open subset and $A \subseteq U$.
Does a continouos function $f: M \rightarrow [0,1]$ exist such that $f(x)=1$ if $x \in A$ and $f(x)=0$ if $x \notin U$
I dont't know how to approach this. Would be thankful for hints