You will write three small functions that find an oxidation number by solving the equation of the sums.
The idea. The oxidation numbers of all the atoms add up to the charge of the species. If one element X has n atoms and all the other atoms together contribute others, then .
Your tasks.
others_total, return the total for n_o oxygen atoms that are each .find_ox, return the oxidation number of X from n, others and charge.oxoanion, return the oxidation number of X in an ion , using the two functions above.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…