title: Running multiple programs from the for loop
body: <p>This program prints out the number of lines of each text file one by one:</p>
  
  <pre><code>files = glob.glob('*.txt') # 5 files
  for f in files:
    with open(f,'r') as fi:
       lines = fi.read().splitlines()
       print len(lines)
  </code></pre>
  
  <p>How can I write my code so that it runs 5 simultaneous programs and prints number of lines at each program separately?</p>