Let $(X,d_X)$ and $(Y,d_Y)$ be metric spaces with $(Y,d_Y)$ bounded. Let $C(X,Y)$ denote the set of all continuous functions from $X$ to $Y$. Let $d$ be the uniform metric on $C(X,Y)$, i.e. $d(f,g) = \sup_{x \in X} d_Y(f(x),g(x))$.
i) Show that if $(Y,d_Y)$ is complete then $(C(X,Y),d)$ is complete.
ii) Consider the map $R: C([0,1],\mathbb R) \to C((0,1), \mathbb R)$ which takes a map on $[0,1]$ to its restriction to $(0,1)$. Is the image of $R$ complete?
I've attempted the first part, but I just can't seem to get through the definitions so any help would be great. As for the second part, I really don't know how to approach this.