Computers are good at repeating things. A loop runs a block of code again and again, and the for loop does it once for each item in a sequence. Together with range(), which produces a sequence of numbers, it covers most of the repetition you will ever need.
More lessons in Complete Python Programming