what is the basic idea behind an electromagnet
What is an electromagnet? An electromagnet is a magnet that runs on electricity. An electromagnet works because an electric current produces a magnetic field. If a wire carrying an electric current is formed into a series of loops, the magnetic field can be concentrated within the loops.