A set $X^Y$ is defined as the set of all functions from $Y$ to $X$. (Sorry for the mistake earlier where I had written $X$ to $Y$ earlier).
$2^X$ is defined as the set of all subsets of $X$ or equally well as the set of all functions from $X$ to $[2]= 1,2$ .
Please provide a strict inequality/equality w.r.t the cardinalities of the above mentioned sets.
P.S. I am not sure which of the tags elementary-set-theory or set-theory is more suitable for this question.
EDIT: A slight clarification. The only thing I know about cardinalities is that there are five relations defined on them, the equality and the four inequalities, with their standard properties of transitivity, reflexivity etc. I do not know of any operations on cardinalities, except for finite sets.
The abovementioned question can be solved if we know that $2^{(\mathbb N \times \mathbb N)}$ and $(2^\mathbb N)^{\mathbb N}$ have the same cardinality, as mentioned in one of the answers. I am unable to find a proof for the same.
HINT: Use a bijection from $\Bbb N\times\Bbb N$ to $\Bbb N$ to show that there is a bijection between ${}^{\Bbb N\times\Bbb N}2$ and ${}^{\Bbb N}2$. (I prefer the notation ${}^XY$ for the set of all functions from $X$ to $Y$.)
Finally, use Cantor’s theorem.