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. /Nanoparticles by the gram
ChemistryMediumHigh School (11–12)Environmental Chemistry

Nanoparticles by the gram

You will write three functions that describe a powder of spherical nanoparticles. Diameters are in nanometres and densities in g/cm3.

The idea. One sphere has a volume of πd3/6\pi d^3 / 6πd3/6. Turn nanometres into centimetres with 1 nm=10−7 cm1\ \text{nm} = 10^{-7}\ \text{cm}1 nm=10−7 cm. The surface area of one gram is 6000/(ρd)6000 / (\rho d)6000/(ρd) in m2/g. The share of atoms of diameter aaa in the outer layer is 1−((d−2a)/d)31 - ((d - 2a)/d)^31−((d−2a)/d)3.

Your tasks.

  1. Complete particle_mass(d_nm, density). It returns the mass of one particle in grams.
  2. Complete area_per_gram(d_nm, density). It returns the surface area of one gram in m2.
  3. Complete surface_share(d_nm, atom_nm). It returns the percentage of atoms in the outer layer, and 100 when the particle is no wider than two atoms.

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, find the diameter at which half of the atoms of a gold particle are at the surface.

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
← An atom economy calculatorA formula from a mass spectrum →
More onEnvironmental Chemistry

Discussion (0)

Log in to join the discussion.

Loading…

More labs on this topic

  1. An atom economy calculatorMedium
  2. A BOD bottleMedium
  3. Carbon dioxide equivalentsEasy
  4. Photons and the ozone shieldMedium
  5. Air monitor readingsEasy
All labs on this topic →