Som van lijst

Sign in to test your solution.
# 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.
Sign in to test your solution.

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona. This feature is still in full development, so we're happy to hear about your suggestions and issues using the contact form.