Let $$ f:X\rightarrow Y $$
If $f$ is defined on $X$ such that every compact set in $X$ is mapped to a compact set in $Y$. Is $f$ a continuous map?
Let $$ f:X\rightarrow Y $$
If $f$ is defined on $X$ such that every compact set in $X$ is mapped to a compact set in $Y$. Is $f$ a continuous map?
Not necessarily. Let
$$f:\Bbb R\to\Bbb R:x\mapsto\begin{cases} 0,&\text{if }x\le 0\\ 1,&\text{if }x>0\;. \end{cases}$$
clearly $f[A]$ is compact for every $A\subseteq\Bbb R$, but $f$ is certainly not continuous.
Let $X$ be some topological space and $Y$ some finite topological space. Then every subset of $Y$ is compact, so every map $f \colon X \to Y$ maps compact sets to compact sets. But not every function into a finite topological space is continuous.