You will write four small functions for the electrolysis of aqueous solutions with inert electrodes. One gives the product at the cathode. One gives the product at the anode. One finds the volume of the gas at the anode from the electrons. One gives the test for a gas.
The idea. At the cathode, a metal below hydrogen (copper, silver) forms the metal, and every more reactive metal gives hydrogen. At the anode, a concentrated halide gives the halogen, and anything else gives oxygen. Chlorine needs 2 electrons for each molecule and oxygen needs 4. One mole of gas fills .
Your tasks.
cathode_product(metal).anode_product(anion, concentrated).anode_volume(electrons, gas) so that it returns the volume in dm³.gas_test(gas) so that it returns the name of the test as text.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…