You will write three small functions for a weather station.
The idea. The list limits holds the lowest speed in km/h of Beaufort force 1, 2, 3 and so on up to 12. A speed below the first limit is force 0.
Your tasks.
beaufort_force, return the Beaufort force for a wind of speed km/h. It is the number of limits that the speed has reached.rain_litres, return the litres of rain on a roof for depth mm of rain and area m².wettest_day, return the day number of the day with the most rain. Day 1 is the first value in the list.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…