Output the sum after the loop. x = [42, 8, 7, 1, 0, 124, 8897, 555, 3, 67, 99] sum = 0 for n in x: sum+=n print(sum). python loops help.
確定! 回上一頁