In order to facilitate future maintenance, when replacing the switch socket, or because the wire melts, it is inevitable to cut off the redundant section of the wire. The greater the resistance of the coil to high-frequency current, the greater the resistance of the coil to high-frequency current, which prevents and weakens the large current from entering the plug-in and protects the plug-in and the electrical appliances inserted on the plug-in. Therefore, many teachers who repair electrical appliances will ask the owners to unplug the electrical appliances when they are struck by lightning to prevent lightning.
It is unrealistic to reserve too much, so there will be no problem of winding a few times, unless the line you use is very thin. I have installed switches for so many years, and the maximum number of switches is no more than 2 turns, most of which are 1 turn. As for other functions, I can't say, and I don't feel any other functions. An inductor is actually made by winding a wire. The characteristic of inductance is to pass DC and resist alternating current. When the changing current passes through the inductor, the inductor will generate induced electromotive force, blocking the change of the original current. This phenomenon is called inductance.
Staying in the box will be very crowded, and it is useless to cut off 10 and 20 cm.
Owners will think that electricians waste wires when they see it. Then the wire will be wound several times, so as not to waste the wire, and to reserve more margin for the next wiring. The coil is actually an inductor. Coiling may have a certain restraining effect on the impact of some current surges, but this effect can be ignored. On the contrary, the more laps, the easier it is for the circled place to get hot.