You will write three functions for decay equations.
The idea. Each nucleus is a pair (A, Z). In alpha decay falls by and falls by . In beta decay stays the same and rises by . Gamma emission changes nothing.
Your tasks.
alpha_decay, return the daughter (A, Z) after an alpha decay.beta_decay, return the daughter (A, Z) after a beta decay.decay_series, take a start nucleus and a string of steps made of a (alpha), b (beta) and g (gamma), and return the final (A, Z).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…