The month of 30 days is in two lists: the temperatures and the rainy days. You will split the temperatures into rainy and dry days, and count how many days had each temperature. Then the program draws a line graph with the rainy days marked, and a bar for each temperature.
The idea. Day is at position in the list, because a list counts from 0.
Your tasks.
rainy to the temperatures of the rainy days, in order.dry to the temperatures of the other days, in order.counts with how many days had each temperature from 27 to 35.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…
With Standard, you also open 8 more problems, 3 Python labs and 1 extra course. Everything you have used here stays free, always.