[SOLVED] associate the sum of the non-negative values in the list numbers with the variable sum.

associate the sum of the non-negative values in the list numbers with the variable sum.

Best Answer for associate the sum of the non-negative values in the list numbers with the variable sum.

Answer:

Best Answer for associate the sum of the non-negative values in the list numbers with the variable sum.

sum = 0

for i in numbers :

if i >= 0 : sum += i

Leave a Comment