You will write the mass balance of a condensation polymer made from two monomers that each have two reactive groups.
The idea. One molecule of each monomer makes a repeat unit, and two water molecules leave. So the repeat unit mass is the two monomer masses minus .
Your tasks.
repeat_mass(m1, m2): the two monomer masses minus two water molecules.polymer_from(n1, n2, m1, m2): the mass of polymer, in grams, from n1 and n2 moles of the two monomers. The smaller amount limits.water_from(n1, n2): the mass of water released, in grams.Run your code once to unlock the worked solution.
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…