A dental formula is written as two rows of four numbers. You will turn a formula into the number of teeth, count one kind of tooth, and find how many permanent teeth have no milk tooth before them.
The idea. Each row is one half of a jaw. The whole mouth has teeth.
Your tasks.
total_teeth. It takes the upper row and the lower row as lists of four numbers.of_kind. It gives the number of teeth of one kind in the whole mouth. The kind is a position: incisors, canines, premolars, molars.new_teeth. It gives the number of adult teeth minus the number of milk teeth.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…