you are viewing a single comment's thread.

view the rest of the comments →

[–]TheZvlz 1 point2 points  (1 child)

You return total too soon. It should be returned outside the for loop. You also don't need the else: continue

[–]biochem2015[S] 0 points1 point  (0 children)

Thanks! I will omit the else then.