Answer:
See, the string is made of nickel and steel (iron+carbon), materials that are ferromagnetic. That is, a magnet attracts guitar strings. When this ferromagnetic metal vibrates in the magnetic field of the pickup, that disturbs the red field lines which also cross through the coil (not shown).
Step-by-step explanation: