step: the wire is looped several times around an iron nail and is connected to a circuit & a electromagnet is formed by attaching an iron nail wrapped in a copper wire to a circuit
inference: an electromaget is formed when a wire is looped around an iron nail and is connceted to a circuit