You will write three small functions: a change of speed from km/h to m/s, the pressure of the wind, and the category of a cyclone.
The idea. Divide km/h by to get m/s. The pressure of the wind is with . The categories start at , , , and . A storm below is category 0.
Your tasks.
to_ms, return the speed in of a wind of kmh km/h.wind_pressure, return the pressure in pascals of a wind of v m/s.category, return 0, 1, 2, 3, 4 or 5 for a wind of kmh km/h.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…