For example , if the south pole of one magnet is put near the south pole of another magnet , the magnets will repel each other . Since opposite ends of magnets are attracted , the north pole of a magnet is attracted to the south pole of another magnet .