The electrolysis is a spontaneous redox reaction produces electricity.
Electrolysis is the disintegration of ionic compounds into their elements by passing a constant electric current through the liquid form. Cations are reduced at the cathode and anions are oxidized at the anode. The main components needed to perform electrolysis are an electrolyte, electrodes, and some kind of external energy source is also needed. In addition, a partition such as an exchange membrane or a salt bridge is also used, but this is optional. They are mainly used to prevent products from diffusing near the counter electrode.
Electrolysis is usually performed in a vessel called an "electrolyte cell" containing two electrodes (cathode and anode) connected to a direct current source and an electrolyte that is a dissociable ionic compound, either molten or soluble in a suitable state.
To learn more about Electrolysis, refer;
https://brainly.com/question/12054569
#SPJ4