I'm taking a course in elementary algebraic geometry, but I seem to be lacking a topological background. The following result is often used:
Let $X,Y$ be topological Spaces, and $U_i$ for $i \in I$ an open cover for $X$ (the convention here is that $\bigcup_{i \in I} U_i = X$). Then, a function $f: X \to Y$ is continuous if and only if $f|_{U_i}: U_i \to Y$ is continuous for $\forall i$ where $U_i$ is endowed with the subspace topology.
How does one prove this? I've not seen this lemma before. (Apparently it's called 'local property of continuity'?)