Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
# Functies:
def som(lijst):
"""
Deze telt alle getallen in een lijst bij elkaar op en returnt het resultaat.
inputparameters:
lijst: een list van ints en/of floats.
returnwaarde:
som: een getal (int of float)
"""
#SCHRIJF HIER JE OPLOSSING
som = #...
return som
# Hoofdcode:
# DEZE CODE NIET VERANDEREN.
# (Wordt gebruikt om automatisch na te kijken.)
print(som([8,7,1,0]))
print(som([8,1,0,6,-8,-9,-5,7]))
print(som([-8,-7.5,-3.2]))
print(som([-0.1, 0.05,0.3,0.08,0.2,0.09,-0.02,0.5, -0.1]))
You can submit as many times as you like. Only your latest submission will be taken into account.