The for loop revisitedΒΆ

Recall that the for loop processes each item in a list. Each item in turn is (re-)assigned to the loop variable, and the body of the loop is executed. We saw this example in an earlier chapter.




(ch07_for1)




(ch07_summation)

Next Section - The while Statement