A list of events says where the pollen came from. You will write the code that names each kind of pollination and counts the events that bring genetically new pollen.
The idea. The kind of pollination depends only on the source of the pollen.
Your tasks.
kind. It takes the source, which is "same flower", "same plant" or "other plant", and gives the kind.brings_new_genes. It gives True only for xenogamy.count_new. It counts the events in a list that bring genetically new pollen.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…