Suppose $X_n$ converges almost surely to $X$, and $f$ is a continuous function. Prove that $f(X_n)$ converges almost surely to $f(X)$.
My approach: according to definition of continuous $|x - a| < \alpha$, then $|f(x) - f(a)| < \delta$ so that take the limit of n to infinity: $P(|f(X_n) - f(X)| < \delta) = 1$ but I am not sure what to do after that?
Can someone please help me out?
(homework)(convergence as surely)