Make a magnet
Switch on the coil and its field lines the tiny magnets up. When the current stops, soft iron lets go and steel holds on: that is the syllabus idea of temporary and permanent magnets.
Beyond the syllabus Hammering in the Earth's field, and stroking with the magnet (drag it along the bar, one direction, lift it clear to go back), also work.