My professor says these proofs are no good. Could you tell me what is wrong with them?
Theorem 1.a. If $Y$ has the trivial topology, then $f : X \rightarrow Y$ is continuous.
Proof. No matter what topology $X$ is equipped with, the sets $X$ and $\varnothing$ are open sets. The inverse image of the set $Y$ is $X$, which is an open set, and the inverse image of the set $\varnothing$ is $\varnothing$, which is an open set. Therefore $f$ is always continuous.
Theorem 1.b. If $X$ has the discrete topology, then $f : X \rightarrow Y$ is continuous.
Proof. If $X$ has the discrete topology then every subset of $X$ is an open set. No matter what topology $Y$ has, the inverse image of $Y$ is going to be a subset of $X$. Therefore the inverse image of $Y$ is always an open set. Therefore $f$ is always continuous.