Sum of duos
Sign in to test your solution.
def som_van_duos(getallen_lijst: list[int]) -> list[int]:
# Maak een lege lijst aan
# Overloop de getallen_lijst
# Zorg dat je het huidige en het volgende element hebt op basis van de index
# Voeg de som van die twee getallen toe aan de nieuwe lijst
# Let op voor het speciale geval dat het aantal oneven is
# Geef de nieuwe lijst terug
...
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.
Test case being debugged