title: Is there a way to rewrite a list comprehension as a for loop?
body: <p>I have a line of code like this:</p>
  
  <pre><code>list1=[string1[i:i+int1] for i in range(0, len(string1), int1)]
  </code></pre>
  
  <p>I remember my teacher saying that we should start new lines when there is 'for'
  so, is there a way to write this code that looks like:</p>
  
  <pre><code>for i in range(0, len(string1), int1):
      #something here
  </code></pre>
  
  <p>or something else?</p>