Four rings are described by the number of pi electrons they hold and by whether they are flat. You will apply Hückel's rule to each.
The idea. A ring is aromatic if it is flat and its number of pi electrons is . A flat ring with pi electrons is antiaromatic.
Your tasks.
fits_rule to the list of names whose number of pi electrons fits , in the order of the dictionary.aromatic to the list of names that fit the rule and are flat.antiaromatic to the list of names that are flat and have a number of pi electrons divisible by 4.n_naphthalene to the value of for naphthalene.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…