With broken test
Here test broken
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:
Total: <total>
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 33.33
With broken test
Swipe to show menu
Here test broken
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:
Total: <total>
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 33.33single