You will finish three functions that use a table of replacements of the diazonium group. The table holds the reagent, the product and the molar mass of the product.
The idea. Each mole of aniline gives one mole of diazonium salt, and each mole of salt gives one mole of product. The mass of product is the amount, times the molar mass, times the yield.
Your tasks.
product(reagent) so that it returns the name of the product.mass_made(reagent, aniline_g, percent) so that it returns the mass of product in grams. Aniline has a molar mass of 93 g/mol.reagent_for(name) so that it returns the reagent that gives the named product.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…