# prize35-1 Exercise 1: sorting examples into levels of organisation items = [ ("a single oak tree", "organism"), ("all the oak trees in Epping Forest", "population"), ("the oaks, beetles, fungi, birds and deer of Epping Forest together", "community"), ("Epping Forest with its soil, rainfall and sunlight", "ecosystem"), ("temperate broadleaf forest worldwide", "biome"), ("every living thing on Earth", "biosphere"), ("one herring", "organism"), ("all the herring in the North Sea", "population"), ] levels = ["organism", "population", "community", "ecosystem", "biome", "biosphere"] for text, level in items: rank = levels.index(level) + 1 print(f"level {rank} ({level:10s}): {text}") # Output: # level 1 (organism ): a single oak tree # level 2 (population): all the oak trees in Epping Forest # level 3 (community ): the oaks, beetles, fungi, birds and deer of Epping Forest together # level 4 (ecosystem ): Epping Forest with its soil, rainfall and sunlight # level 5 (biome ): temperate broadleaf forest worldwide # level 6 (biosphere ): every living thing on Earth # level 1 (organism ): one herring # level 2 (population): all the herring in the North Sea # Note: the oak tree is one organism, but 'all the oaks in the forest' is a population: # the level changes as soon as you count individuals of one species together.