title: How do I delete a specified number of files in a directory in Python?
body: <p>I want to reduce the number of files in a folder or rather remove a specified number of files from the folder.
  I'd appreciate simple solutions likely limited around my code below, which definitely is not working and wrong.</p>
  
  <pre><code>files = os.listdir()
  for file in files:
      for file in range(11):
          os.remove(file)
  </code></pre>