A source of emf is connected by wires to a resistor, and electrons flow in the circuit. The wire diameter is the same throughout the circuit. Compared to the potential energy of an electron before entering the resistor, the potential energy of an electron after leaving the resistor is.