You will write functions that turn a mass of salt and a mass of water into a salinity, and then into a kind of water.
The idea. Salinity is the grams of salt in each kilogram of water, in parts per thousand. Inland waters are below , the sea is to , and hypersaline lagoons are above .
Your tasks.
salinity. It gives the grams of salt in each kilogram of water.kind. It gives "inland", "sea", "lagoon" or "other".count_sea. It counts the samples in the list that are sea water.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…