For loops, part 2 - Tom Kleen

for counter in range(5): Step 8: Inside the for loop, allow the user to enter a number. Then, add an accumulation statement that adds the number to total. In Python, the range function determines the number of iterations, so it is not necessary to manually increment counter. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download