You will write functions that predict whether a metal dissolves in a solution of another metal's ions. You will also pick out the metals that release hydrogen from acid, and work out the free energy change of a reaction.
The idea. A reaction happens if is positive. .
Your tasks.
displaces(metal, ion_of) so that it returns True when the strip of metal dissolves in a solution of the ions of ion_of.acid_metals to the list of metals that release hydrogen from dilute acid, in the order of the table.delta_g(e_cell, n) so that it returns in kJ/mol.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…