You will finish a small route planner. Each route to a primary amine has a change in the number of carbon atoms, and notes on whether it gives a pure product and whether it works for an aromatic amine.
The idea. A route starts from a compound with a different number of carbon atoms from the amine. The nitrile route starts with one carbon fewer than the amine, and the Hofmann route with one carbon more.
Your tasks.
start_carbons(route, wanted) so that it returns the carbon atoms the starting compound needs.pure with the routes that give a pure primary amine (the value True in the second place).for_aromatic with the routes that work for an aromatic amine (the value True in the third place).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…