You will write four functions for the lesson on condensation polymers. One counts the links in a chain. One finds the relative mass of a chain from its monomers. One finds the relative mass of a repeat unit. One finds the mass of nylon that forms from a mass of hexanedioic acid.
The idea. A straight chain of monomer molecules has links, and each link loses a molecule of water, of relative mass . A repeat unit holds two monomer molecules and has two links. Hexanedioic acid has , and the nylon repeat unit has .
Your tasks.
links(molecules).chain_mr(masses), where masses is the list of the relative masses of all the monomer molecules in the chain.repeat_unit_mr(first, second).nylon_mass(acid_g), for a very long chain made with exactly the right amount of diamine.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…