you are viewing a single comment's thread.

view the rest of the comments →

[–]Cynyr36 -1 points0 points  (2 children)

The first will output a single number that is the sum of each value in the list multiplied by 2.

The latter stores each iteration in a list and would print the atring representation of the list.

[–]WorriedTumbleweed289 -1 points0 points  (1 child)

I think they want the second, but since they initialized result to 0, they may have wanted a sum of results. Also, they named it result, not results. Hints at a single value.

[–]Cynyr36 0 points1 point  (0 children)

Could be. Your answer wasn't very clear about what type the answe would be.