You will work out the energy of a meal, change it into kilojoules, and find the share that comes from fat.
The idea. The physiological values are , and in each gram of carbohydrate, protein and fat. One kilocalorie is .
Your tasks.
energy_kcal.to_kj.fat_share. It gives the per cent of the energy that comes from fat.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…