Skip to content

Python Kata #3: World population

You are involved in a campaign against a lethal virus. You just received the health status information for the whole world population in a CSV file with a header line. You have a to work on number of reports, generated from the dataset. Can you create a Python generator to help you with the reports?

Each item returned from the generator is a namedtuple with fields corresponding to the columns of the CSV file.