<% for i in range(10): # This comment sets the indentation that will last until # another command or comment changes it %>

<%= i %>

<% # This comment finishes the loop indentation # otherwise the next line would be repeated for all values of i %>