A list gives the enzymes of human digestion in the order the food meets them, with where each is made and the food it acts on. You will list the enzymes that act on proteins, count the enzymes of each part, and find the part with the most. Then the program draws the counts.
The idea. Go through the list in order, and keep the ones you want. A dictionary is good for counting.
Your tasks.
acting_on, return the names of the enzymes that act on the given food, in order.per_part to a dictionary of each part and the number of its enzymes.busiest to the part with the most enzymes.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…