Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära With broken test | First Section
Explain Unit test on grid chapter

Svep för att visa menyn

book
With broken test

Here test broken

Uppgift

Swipe to start coding

You have a list of integers stored in the variable numbers. Your task is to compute the sum of all elements in this list and assign the result to the variable total. The total variable should be of type int. You are not allowed to use the built‐in sum() function — you must implement the summation manually (e.g. with a loop). Finally, print the result in the format:

python

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
With broken test

Here test broken

Uppgift

Swipe to start coding

You have a list of integers stored in the variable numbers. Your task is to compute the sum of all elements in this list and assign the result to the variable total. The total variable should be of type int. You are not allowed to use the built‐in sum() function — you must implement the summation manually (e.g. with a loop). Finally, print the result in the format:

python

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt