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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • 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. /A surface area calculator
ChemistryEasyHigh School (9–10)Chemical Kinetics › Temperature, the Arrhenius Equation and Collision Theory

A surface area calculator

You will write three functions for a cube that is cut into smaller cubes. One counts the small cubes. One finds their total surface area. One finds how many times bigger the area has become.

The idea. A cube with nnn pieces along each edge is cut into n×n×nn \times n \times nn×n×n small cubes, each with side siden\dfrac{\text{side}}{n}nside​. A cube of side sss has a surface area of 6s26s^26s2. The volume does not change, but the total area does.

Your tasks.

  1. Complete pieces(n).
  2. Complete total_area(side, n). It returns the total surface area of all the small cubes.
  3. Complete area_ratio(side, n). It returns the total area of the small cubes divided by the area of the original cube.

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, call area_ratio(10, 5). Does the ratio depend on the side of the cube?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A 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
← Reading a rate graphFrom times to rates →
More onChemical Kinetics › Temperature, the Arrhenius Equation and Collision Theory

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Concentration, pressure and surface areaConcentration, Temperature, Catalysts and Light

More labs on this topic

  1. From times to ratesMedium
  2. Reading a rate graphMedium
  3. A mean rate calculatorEasy
  4. Barriers and catalystsEasy
  5. An Arrhenius calculator
Medium
All labs on this topic →