Question: this is my python code that make sum of list. for_loop code worked but other two has problem which part is wrong? how should I


this is my python code that make sum of list.
for_loop code worked but other two has problem
which part is wrong?
how should I fix this problem?
def for_loop (numbers): sum = 0 for i in numbers: print (sum) def while loop(numbers): sum=0 n=0 while (n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
