A more reactive halogen pushes a less reactive one out of its salt. You will write the test, name what is set free, and list every pair that reacts.
The idea. The order, most reactive first, is F, Cl, Br, I. A free halogen displaces a halide that comes later in the list.
Your tasks.
displaces, return True if the free halogen comes before the halide in order.freed, return the halogen set free, such as "I2", or "none".pairs with every (halogen, halide) pair from Cl, Br and I that reacts.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…