title: Print a string after a for loop that prints in stderr
body: <p>I need to print a string only after my loop (that's printing in stderr) is finished...like this:</p>
  
  <pre><code>for i in range(0, 1000000):
     print(i, file=sys.stderr)
  
  print("The for loop in done.")
  </code></pre>
  
  <p>P.S. I already tried using:</p>
  
  <pre><code>import time
  time.sleep(&lt;ex. 5sec.&gt;)
  </code></pre>