The study of photon is much more elaborate and richer than what you may think it is. For your current stage of study, I suggest that you hold onto the understanding that photons are the entity that is responsible to the energy unit of an electromagnetic radiation. Namely, given the frequency of the radiation, its total energy can be expressed as an integer multiple of the one photon energy corresponding to this frequency.
I would also like to warn you in advance about a common misconception in this matter so that you won't fall for it, is that people with limited mathematical knowledge of photons tend to easily associate the wavefunction of photons with the electric (or magnetic) field disturbances. That's not true, because in the quantum description of light, electric and magnetic fields are operators, hence they are a different and separate object as photon's wavefunction.
If you dive deeper in this direction, you will also learn that the energy of an electromagnetic radiation, despite expressible as an integer multiple of a photon's energy, can also have some uncertainty due to the uncertain nature of the number of photons contained in that radiation.
Lastly, if you feel like the second and third paragraph of my post is taking too long or too abstract to grasp, then you do need to hold for the time being your complete description about the difference between the EM wave and photons to the basic level, for which the first paragraph of this post shall be representative.