Learning to write DO loops takes practice. At first you may find it helpful to first write out the loop as a sequence of identical statements, as we have done in both examples in this section. As you gain experience, however, you will learn to write the loop directly without going through this intermediate step.
Hamlet Project