You will write a function that makes a formula from two parts and their valencies by the criss-cross method, simplifies it, and puts a group of atoms in brackets when there is more than one of it. The program then writes six formulas.
The idea. Cross over the valencies, divide both numbers by their highest common factor, leave out a , and bracket a group such as OH or that appears more than once.
Your tasks.
n1 to the valency of the second part and n2 to the valency of the first.g, their highest common factor.part, put a group in brackets when its number is more than .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…
With Standard, you also open 4 more problems and 1 Python lab. Everything you have used here stays free, always.