Answer
Real part= $2$
Imaginary part = $0$
Work Step by Step
A complex number is written as $a+bi$, where $a$ is the real part and $b$ is the imaginary part as it is multiplied to the imaginary unit $i$.
Writing the complex number as $2+0i$, we find that $2$ represents the real part while $0$ represents the imaginary part.