A doctor measures the cortisol and ACTH of a patient. Each is given as a share of the normal level: 1.0 is normal, below 0.7 is low and above 1.3 is high. You will turn the two numbers into a diagnosis.
The idea. Cortisol switches ACTH down. A low cortisol with a high ACTH points to the adrenal gland. A high cortisol with a low ACTH points to a source of cortisol that ignores the loop.
Your tasks.
level. It gives "low", "normal" or "high".diagnose. Use the levels of cortisol and ACTH to give the answer from the table below the function.count_addison. It counts how many patients in a list have Addison's disease.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…