title: In python, how do I exclude files from a loop if they begin with a specific set of letters?
body: <p>I'm writing a Python script that goes through a directory and gathers certain files, but there are a number of files I want excluded that all start the same.</p>
  
  <p>Example code:</p>
  
  <pre><code>for name in files:
     if name != "doc1.html" and name != "doc2.html" and name != "doc3.html":
        print name
  </code></pre>
  
  <p>Let's say there are 100 hundred HTML files in the directory all beginning with <code>'doc'</code>. What would be the easiest way to exclude them?</p>
  
  <p>Sorry I'm new to Python, I know this is probably basic.</p>
  
  <p>Thanks in advance.</p>