In the figure shown below, current is flowing in the anticlockwise direction in a loop of wire. The part of the loop that faces towards you is the
north pole
We know that the direction of magnetic field around a current carrying conductor can be found by right-hand thumb rule. And we know that magnetic field due to each part of the wire will have a component in the centre of the loop that points in one direction.
As the field line is coming out of the loop at this part, this part will be the north pole.