or

A current-carrying wire exerts a force on a magnetic compass and defects it from its usual north-south position which is called the motor effect.

When current is passed through a conductor, a magnetic field is developed around it.