title: How can i read specific files in a folder (files within a range)in Python
body: <p>For example, I have some 43000 txt files in my folder, however, I want to read not all the files but just some of them by giving in a range, like from <code>1.txt</code> till 14400.txt`. How can I achieve this in Python? For now, I'm reading all the files in a directory like</p>
  <pre class="lang-py prettyprint-override"><code>for each in glob.glob(&quot;data/*.txt&quot;):
      with open(each , 'r') as file:
          content = file.readlines()
          with open('{}.csv'.format(each[0:-4]) , 'w') as file:
              file.writelines(content)
  </code></pre>
  <p>Any way I can achieve the desired results?</p>