You will write the decisions of a greenhouse microprocessor. A list of readings takes the place of the sensors.
Your tasks.
window_signal, return "open" when the temperature is above max_temperature, and "close" otherwise.pump_signal, return "on" when the moisture is below min_moisture, and "off" otherwise.(temperature, moisture) in readings, add the pair of signals to the list signals.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…