Experiment to show like poles repel and unlike poles attract each other. Take two bar magnets. Suspend one of these bar magnets by a string at some distance away from the other magnet and mark its north and south poles. Now, hold the first magnet in your hand and brings its north pole close to each pole of the suspended magnet, one by one. Repeat the same experiment now with the south pole of the bar magnet held in your hand. You will observe that the north poles of the two magnets, repel one another. The same is true for their south poles. However, the north pole of one magnet attracts the south pole of the other and vice-versa.
The observations can be summarised in the following way:
Like poles repel each other and unlike poles attract each other.
Showing that like poles repel and unlike poles attract