Electromagnet
Different alloys act differently. Iron stops being an electromagnet very quickly, but steel takes time to wear off. To make an electromagnet, copper wire is wound around an iron rod. The two ends of the wire are connected to the + (positive) and - (negative) side of the battery.