Yahoo Web Search

Search results

  1. 11 hours ago · Summing Numbers Using a For Loop. Although the sum() function is convenient, you can also sum numbers manually using a for loop. numbers = [100, 200, 300, 400, 500] # Initialize the sum to 0. total = 0. # Iterate through the list and add each number to the total. for num in numbers: total += num.

  1. People also search for