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 . Turn nanometres into centimetres with . The surface area of one gram is in m2/g. The share of atoms of diameter in the outer layer is .
Your tasks.
particle_mass(d_nm, density). It returns the mass of one particle in grams.area_per_gram(d_nm, density). It returns the surface area of one gram in m2.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 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…