Maandelijkse neerslaggrafiek
Log in om je oplossingen te testen.
import pandas as pd
import matplotlib.pyplot as plt
def rainfall_chart(records):
# records is a list of [month, rainfall] pairs.
# TODO: compute the total rainfall per month as a list of 12 integers
# (January to December), draw a bar chart of it, and return the list.
...
if __name__ == "sandbox":
sample = [[1, 49], [2, 41], [3, 38], [4, 52], [5, 57], [6, 72],
[7, 73], [8, 79], [9, 66], [10, 60], [11, 67], [12, 62]]
print(rainfall_chart(sample))
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.
Python sandbox
In dit venster kan je Python-code uitvoeren zonder iets te moeten installeren. De code die je hier schrijft wordt niet automatisch ingediend in Dodona.
Testgeval dat gedebugd wordt