A health worker visits ten households in a village and notes whether each one has clean drinking water. You will count the households with clean water and find the percentage. Then you will list the households that need help.
The idea. Percentage = part whole .
Your tasks.
with_water to the number of households that have clean water.water_percent to the percentage of the households that have clean water.needs_help to the list of house numbers, counted from , of the households without clean water.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…