Magnetic effect of electric current
A wire carrying an electric current creates a magnetic field around it; this is the magnetic effect of current. That is why a compass needle near the wire moves. If you wind the wire into a coil and run a current through it, the coil gets a north pole and a south pole like a bar magnet, and the field gets stronger with more current or more turns.
When to use it
Use it for questions about how a compass needle near a wire moves, which end of a coil is the north pole, or how to make an electromagnet stronger.
Worked example
Current flows from top to bottom in the front wires of a coil. Curl the four fingers of your right hand in that direction of current, and your thumb points to the right. So the right end of the coil is the north pole (N) and the left end is the south pole (S).
Common mistake
A common mistake is thinking the poles of the coil stay the same when the current is reversed. Reversing the current reverses the magnetic field, so the right end becomes the south pole.