Here are the households of one lane, with their size and their ration card under the National Food Security Act. You will work out each household's grain and the totals for the lane.
The idea. An Antyodaya ("AAY") household gets a month, whatever its size. A priority ("PHH") household gets for each member. A household with no card ("none") gets nothing under the Act.
Your tasks.
grain, return the kilograms a month for one household.lane_total, return the kilograms a month for the whole lane.people_covered, return how many people in the lane live in a household with a card.Run your code once to unlock the worked solution.
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…