You will write four small functions for first order reactions and a pseudo first order test: the half-life, the fraction left, the time to reach a given fraction, and the true rate constant.
The idea. For a first order reaction, and the fraction left after a time is . In a pseudo first order reaction, .
Your tasks.
half_life(k) so that it returns , using math.log(2) for .fraction_left(t, t_half) so that it returns the fraction of the reactant left after time .time_to_fraction(left, t_half) so that it returns the time for the fraction left to remain.true_k(k_prime, excess) so that it returns the true rate constant of a pseudo first order reaction.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…