You will place the parts of the alimentary canal in their regions, add the times that food spends in the parts, and find the part where the food stays longest.
The idea. The alimentary canal has a foregut, a midgut and a hindgut. The times in this lab are made up.
Your tasks.
region. It gives "foregut", "midgut" or "hindgut" for a part, using the dictionary.total_time. It gives the sum of the times in minutes.longest. It gives the name of the part with the longest time.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…