You have the NCERT brain capacities of three ancestors as a table of low and high values. You will write three small functions that find the middle of a range, a percentage rise, and the rises between all the steps.
The idea. The middle of a range is the average of its ends. A percentage rise is the increase divided by the earlier value, times 100.
Your tasks.
middle. It gives the middle of a range of brain capacity.percent_rise. It gives the percentage rise from before to after.rises. It gives a list with the percentage rise from each step of the table to the next, rounded to one decimal place.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…