Consider the set $A =\{3,4\}$. Its power set is $P(A) = \{\varnothing, \{3\}, \{4\}, \{3,4\}\}$. $2^A$ is defined as the set of all functions from $A$ to $2$. Letting $2 = \{\varnothing, \{\varnothing\}\}$, we have the cartesian product $$A \times 2 = \{\langle 3, \varnothing \rangle, \langle 3, \{\varnothing\}\rangle,\langle4,\varnothing\rangle,\langle4,\{\varnothing\}\rangle\}$$ Finally, we know that $f \in 2^A \iff f \in P(A \times 2)$ and $f$ is a function.
Notice that the power set $P(A\times2)$ will have the singleton of each element in $A\times2$ (which will be functions in the set-theoretical sense), and other combinations like $\{\langle3,\varnothing\rangle, \langle4,\varnothing\rangle\}$. But this will mean that there are more than 4 elements of $P(A \times 2)$ that are functions (in the set-theoretical sense of a relation), and that therefore $P(A)$ and $2^A$ aren't equinumerous.
Clearly I'm doing something very wrong here, would anyone have a hint?