You will write three small functions about the layers of the atmosphere.
The idea. The troposphere reaches to 12 km, the stratosphere to 50 km, the mesosphere to 85 km and the thermosphere to 600 km. Above that is the exosphere. In the troposphere the air is 15 °C at the ground and gets 6.5 °C colder for each km.
Your tasks.
layer_name, return the name of the layer at a height of height km: "troposphere", "stratosphere", "mesosphere", "thermosphere" or "exosphere".temperature, return the air temperature in the troposphere at a height of height km.air_mass, return the mass of the air in a room, in kg, from its length, width and height in metres. Use 1.2 kg/m³.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…