A table gives the group and the job of seven microbes of the chapter. You will write functions that look things up in it, and one function for the urea that a biofertiliser saves.
The idea. A dictionary holds each microbe with its group and its job. A function can pick out the microbes of one group, or the ones whose job is a certain one.
Your tasks.
group_of. It gives the group of a microbe.names_in_group. It gives the sorted list of the microbes of a group.nitrogen_fixers. It gives the sorted list of the microbes whose job has the word nitrogen in it.urea_saved. It gives the kg of urea saved on a field, with nitrogen in urea.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…