Answer:
The piece of iron has become a magnet. Some substances can be magnetized by an electric current. When electricity runs through a coil of wire, it produces a magnetic field. The field around the coil will disappear, as soon as the electric current is turned off.