You will write functions that decide what forms at the cathode and at the anode when a salt solution is electrolysed between platinum electrodes. You will also find the least voltage that starts the electrolysis.
The idea. At the cathode the couple with the higher potential is reduced, and water competes at . At the anode the couple with the lower potential is oxidised, and water competes at .
Your tasks.
cathode_product(cation) so that it returns "metal" when the cation is reduced before water, and "H2" when water is.anode_product(anion) so that it returns "anion" when the anion is oxidised before water, and "O2" when water is.least_voltage(cation, anion) so that it returns the potential of the couple oxidised minus the potential of the couple reduced, in volts.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…