Loops allow parts of code to be repeated some number of times.
Let’s consider an example. Suppose we want to take a word and print out each letter of the word separately. We could do the following:
In : word = 'snow' In : print(word) s In : print(word)