Seven infectious agents are described by four facts: are they cells, do they have nucleic acid, do they have a protein coat, are they protein only? You will write a function that names the kind of agent, sort all seven, and count the ones that are not cells.
The idea. A bacterium is a cell. A virus is nucleic acid in a protein coat. A viroid is free nucleic acid (RNA) with no coat. A prion is protein only.
Your tasks.
kind so that it also names prions, viruses and viroids.kinds to a dictionary of each agent and its kind.not_cells to the number of agents that are not cells.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…
With Standard, you also open 4 more problems and 1 Python lab. Everything you have used here stays free, always.