HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /The dental formula counter
BiologyEasyHigh School (11–12)Human Body › Digestive System

The dental formula counter

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 2×(upper row+lower row)2 \times (\text{upper row} + \text{lower row})2×(upper row+lower row) teeth.

Your tasks.

  1. Finish total_teeth. It takes the upper row and the lower row as lists of four numbers.
  2. Finish of_kind. It gives the number of teeth of one kind in the whole mouth. The kind is a position: 000 incisors, 111 canines, 222 premolars, 333 molars.
  3. Finish new_teeth. It gives the number of adult teeth minus the number of milk teeth.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, try the cat, 31313121\dfrac{3131}{3121}31213131​. How many teeth does it have?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

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 save
← All Labs
← Pull, push and climbThe surface area model →
More onHuman Body › Digestive System

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. The meal energy calculatorEasy
  2. Carriers and diffusionMedium
  3. Acid and bicarbonateMedium
  4. The enzyme finderEasy
  5. The surface area modelMedium
All labs on this topic →