title: How to check size of the files in a directory with python?
body: <p>I have a folder that contains 4 text files. I want to program a code with which I would be able to check the size of the files in my folder and only open those that has equal sizes. Anyone has any idea?</p>
  
  <p>I have already tried this</p>
  
  <pre><code>import os
  
  
  d=os.stat('H:/My Documents/211').st_size
  </code></pre>