Answer by
Anonymous (33)
A magnet has two opposite poles, referred to as north and south. Opposite magnetic poles attract each other, and similar magnetic poles repel each other, exactly as happens with electric charges.
The force depends on the strength of the poles and the distance between them. This is similar to the Coulomb's inverse square law for electric charges.