Making an electromagnet
When current flows through the coil, it becomes magnetic.
The current makes a magnetic field
form around the coil.
When the current is off, the coil is not magnetic.
The strength of the magnet is affected by:
adding more coils
increasing the current
putting an iron core in the coil.