You will finish a program that predicts which halogens oxidise which halide ions. It works from the standard electrode potentials.
The idea. A halogen oxidises the halide of another halogen if its potential is higher. The cell potential is the difference. A halogen with a higher potential is a stronger oxidising agent.
Your tasks.
cell_potential(added, present) so that it returns the potential of the halogen added minus that of the other halogen, rounded to 2 decimal places.displaces(added, present) so that it returns True when the cell potential is positive.strongest_first to the list of halogen names in order from the strongest oxidising agent to the weakest.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…